ScatterMessage.cc
Go to the documentation of this file.
unsigned int capacity() const
Returns the maximum number of elements that can be written to the buffer without reallocating memory...
Definition: Buffer.h:86
void resize(const unsigned int size)
Resizes the buffer to the specified size.
Definition: Buffer.h:214
void set_endian_mismatch(const bool mismatch=true)
Sets the endian mismatch flag to the specified value.
Definition: BaseMessage.h:217
Message is a reusable and resizable data buffer for sending and receiving messages.
Definition: Message.h:47
This header defines the ScatterMessage class.
void set_service(const service_type service)
Sets the service type of the message.
Definition: BaseMessage.h:167
virtual unsigned int size() const
Returns the number of bytes in the message.
Definition: Message.h:96
The maximum number of elements that can be added to a scatter message.
Definition: ScatterMessage.h:58
service_type service() const
Returns the service type requested (for sends) or sent under (for receives) of the message...
Definition: BaseMessage.h:177
void set_type(const message_type type)
Sets the message type identifier.
Definition: BaseMessage.h:185
virtual unsigned int size() const
Returns the total size of the message (comprising all of its parts) in bytes.
Definition: ScatterMessage.h:146
bool endian_mismatch() const
Returns true if there is an endian mismatch between sender and receiver, false otherwise.
Definition: BaseMessage.h:227
bool add(const void *data, const unsigned int size)
Adds a message part to the ScatterMessage with a designated number of bytes indicating either the cap...
Definition: ScatterMessage.cc:115
Copyright © 2006-2015 Savarese Software Research Corporation. All rights reserved.
Copyright © 2017 Savarese Software Research Corporation. All rights reserved