* 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:
Axel Dörfler 2008-07-09 21:32:37 +00:00
parent 14f3368d36
commit 8d79c7db81
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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