* Made Dump() const.
* Removed superfluous whitespace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26347 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
14f3368d36
commit
8d79c7db81
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2005-2007, Ingo Weinhold, bonefish@users.sf.net. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
@ -135,7 +135,7 @@ public:
|
||||
status_t ReceiveFrom(port_id fromPort, bigtime_t timeout = -1,
|
||||
port_message_info* messageInfo = NULL);
|
||||
|
||||
void Dump(void (*printFunc)(const char*,...));
|
||||
void Dump(void (*printFunc)(const char*,...)) const;
|
||||
|
||||
private:
|
||||
friend class KMessageField;
|
||||
@ -201,7 +201,7 @@ public:
|
||||
type_code TypeCode() const;
|
||||
bool HasFixedElementSize() const;
|
||||
int32 ElementSize() const; // if HasFixedElementSize()
|
||||
|
||||
|
||||
status_t AddElement(const void *data, int32 size = -1);
|
||||
status_t AddElements(const void *data, int32 count, int32 elementSize = -1);
|
||||
const void *ElementAt(int32 index, int32 *size = NULL) const;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2005-2007, Ingo Weinhold, bonefish@users.sf.net.
|
||||
* All rights reserved. Distributed under the terms of the MIT License.
|
||||
*/
|
||||
@ -601,7 +601,7 @@ KMessage::ReceiveFrom(port_id fromPort, bigtime_t timeout,
|
||||
|
||||
|
||||
void
|
||||
KMessage::Dump(void (*printFunc)(const char*,...))
|
||||
KMessage::Dump(void (*printFunc)(const char*,...)) const
|
||||
{
|
||||
Header* header = _Header();
|
||||
printFunc("KMessage: buffer: %p (size/capacity: %ld/%ld), flags: 0x0lx\n",
|
||||
@ -946,7 +946,7 @@ int32
|
||||
KMessageField::ElementSize() const
|
||||
{
|
||||
KMessage::FieldHeader* header = _Header();
|
||||
return (header ? header->elementSize : -1);
|
||||
return (header ? header->elementSize : -1);
|
||||
}
|
||||
|
||||
// AddElement
|
||||
@ -992,7 +992,7 @@ int32
|
||||
KMessageField::CountElements() const
|
||||
{
|
||||
KMessage::FieldHeader* header = _Header();
|
||||
return (header ? header->elementCount : 0);
|
||||
return (header ? header->elementCount : 0);
|
||||
}
|
||||
|
||||
// SetTo
|
||||
|
Loading…
Reference in New Issue
Block a user