Pivotal GemFire Native .NET Reference
10.0.5
|
Provides operations for writing primitive data values, and user-defined objects implementing ISerializable, to a byte stream. More...
Public Member Functions | |
void | AdvanceCursor (System::UInt32 offset) |
Advance the buffer cursor by the given offset. More... | |
DataOutput (Apache::Geode::Client::Cache^ cache) | |
Default constructor. More... | |
array< Byte > ^ | GetBuffer () |
Get a copy of the current buffer. More... | |
void | Reset () |
Reset the cursor to the start of the buffer. More... | |
void | RewindCursor (System::UInt32 offset) |
Rewind the buffer cursor by the given offset. More... | |
void | WriteArrayLen (System::Int32 len) |
Write length of the array to the DataOutput . More... | |
void | WriteArrayOfByteArrays (array< array< Byte >^>^ value) |
Write a array of sign byte array to the DataOutput. More... | |
void | WriteBoolean (bool value) |
Write a boolean value to the DataOutput . More... | |
void | WriteBooleanArray (array< bool >^ value) |
Write a bool array to the DataOutput. More... | |
void | WriteBytes (array< Byte >^ bytes) |
Write an array of bytes to the DataOutput . More... | |
void | WriteBytes (array< Byte >^ bytes, System::Int32 len) |
Write a given length of bytes to the DataOutput . More... | |
void | WriteBytesOnly (array< Byte >^ bytes) |
Write an array of bytes without its length to the DataOutput . More... | |
void | WriteBytesOnly (array< Byte >^ bytes, System::UInt32 len) |
Write a given length of bytes without its length to the DataOutput . More... | |
void | WriteChar (Char value) |
void | WriteCharArray (array< Char >^ value) |
Write a char array to the DataOutput. More... | |
void | WriteCollection (System::Collections::IList^ value) |
Write a collection to the DataOutput. More... | |
void | WriteDate (System::DateTime value) |
Write a date to the DataOutput. More... | |
void | WriteDictionary (System::Collections::IDictionary^ value) |
Write a Dictionary to the DataOutput. More... | |
void | WriteDouble (double value) |
Write a double precision real number to the DataOutput . More... | |
void | WriteDoubleArray (array< double >^ value) |
Write a double array to the DataOutput. More... | |
void | WriteFloat (float value) |
Write a float to the DataOutput. More... | |
void | WriteFloatArray (array< float >^ value) |
Write a float array to the DataOutput. More... | |
void | WriteInt16 (System::Int16 value) |
Write a 16-bit integer to the DataOutput . More... | |
void | WriteInt32 (System::Int32 value) |
Write a 32-bit integer to the DataOutput . More... | |
void | WriteInt64 (System::Int64 value) |
Write a 64-bit integer to the DataOutput . More... | |
void | WriteIntArray (array< Int32 >^ value) |
Write a int array to the DataOutput. More... | |
void | WriteLongArray (array< Int64 >^ value) |
Write a long array to the DataOutput. More... | |
void | WriteObject (Object^ obj) |
Write a Serializable object to the DataOutput . More... | |
void | WriteObjectArray (List< Object^>^ value) |
Write a object array to the DataOutput. More... | |
void | WriteSByte (SByte value) |
Write a signed byte to the DataOutput . More... | |
void | WriteSBytes (array< SByte >^ bytes) |
Write an array of signed bytes to the DataOutput . More... | |
void | WriteSBytes (array< SByte >^ bytes, System::Int32 len) |
Write a given length of signed bytes to the DataOutput . More... | |
void | WriteSBytesOnly (array< SByte >^ bytes) |
Write an array of signed bytes without its length to the DataOutput . More... | |
void | WriteSBytesOnly (array< SByte >^ bytes, System::UInt32 len) |
Write a given length of signed bytes without its length to the DataOutput . More... | |
void | WriteShortArray (array< Int16 >^ value) |
Write a short array to the DataOutput. More... | |
void | WriteUTF (String^ value) |
Write a string using java-modified UTF-8 encoding to DataOutput . More... | |
Properties | |
size_t | BufferLength [get] |
Get the length of current data in the buffer. More... | |
Provides operations for writing primitive data values, and user-defined objects implementing ISerializable, to a byte stream.
This class is intentionally not thread safe.
Apache::Geode::Client::DataOutput::DataOutput | ( | Apache::Geode::Client::Cache^ | cache | ) |
Default constructor.
void Apache::Geode::Client::DataOutput::AdvanceCursor | ( | System::UInt32 | offset | ) |
Advance the buffer cursor by the given offset.
offset | The offset by which to advance the cursor. |
array<Byte> ^ Apache::Geode::Client::DataOutput::GetBuffer | ( | ) |
Get a copy of the current buffer.
void Apache::Geode::Client::DataOutput::Reset | ( | ) |
Reset the cursor to the start of the buffer.
void Apache::Geode::Client::DataOutput::RewindCursor | ( | System::UInt32 | offset | ) |
Rewind the buffer cursor by the given offset.
offset | The offset by which to rewind the cursor. |
void Apache::Geode::Client::DataOutput::WriteArrayLen | ( | System::Int32 | len | ) |
Write length of the array to the DataOutput
.
len | Array len to write. |
void Apache::Geode::Client::DataOutput::WriteArrayOfByteArrays | ( | array< array< Byte >^>^ | value | ) |
Write a array of sign byte array to the DataOutput.
value | The array of sign byte array to write. |
void Apache::Geode::Client::DataOutput::WriteBoolean | ( | bool | value | ) |
Write a boolean value to the DataOutput
.
value | The boolean value to write. |
void Apache::Geode::Client::DataOutput::WriteBooleanArray | ( | array< bool >^ | value | ) |
Write a bool array to the DataOutput.
value | The bool array to write. |
|
inline |
Write an array of bytes to the DataOutput
.
bytes | The array of bytes to write. |
void Apache::Geode::Client::DataOutput::WriteBytes | ( | array< Byte >^ | bytes, |
System::Int32 | len | ||
) |
Write a given length of bytes to the DataOutput
.
bytes | The array of bytes to write. |
len | The number of bytes from the start of array to write. |
|
inline |
Write an array of bytes without its length to the DataOutput
.
bytes | The array of bytes to write. |
void Apache::Geode::Client::DataOutput::WriteBytesOnly | ( | array< Byte >^ | bytes, |
System::UInt32 | len | ||
) |
Write a given length of bytes without its length to the DataOutput
.
bytes | The array of bytes to write. |
len | The number of bytes from the start of array to write. |
void Apache::Geode::Client::DataOutput::WriteChar | ( | Char | value | ) |
Write a char value to the DataOutput
.
value | The char value to write. |
void Apache::Geode::Client::DataOutput::WriteCharArray | ( | array< Char >^ | value | ) |
Write a char array to the DataOutput.
value | The char array to write. |
void Apache::Geode::Client::DataOutput::WriteCollection | ( | System::Collections::IList^ | value | ) |
Write a collection to the DataOutput.
value | The object which implements IList to write. |
void Apache::Geode::Client::DataOutput::WriteDate | ( | System::DateTime | value | ) |
Write a date to the DataOutput.
value | The date value to write. |
void Apache::Geode::Client::DataOutput::WriteDictionary | ( | System::Collections::IDictionary^ | value | ) |
Write a Dictionary to the DataOutput.
value | The object which implements IDictionary to write. |
void Apache::Geode::Client::DataOutput::WriteDouble | ( | double | value | ) |
Write a double precision real number to the DataOutput
.
value | The double precision real number to write. |
void Apache::Geode::Client::DataOutput::WriteDoubleArray | ( | array< double >^ | value | ) |
Write a double array to the DataOutput.
value | The double array to write. |
void Apache::Geode::Client::DataOutput::WriteFloat | ( | float | value | ) |
Write a float to the DataOutput.
value | The float value to write. |
void Apache::Geode::Client::DataOutput::WriteFloatArray | ( | array< float >^ | value | ) |
Write a float array to the DataOutput.
value | The float array to write. |
void Apache::Geode::Client::DataOutput::WriteInt16 | ( | System::Int16 | value | ) |
Write a 16-bit integer to the DataOutput
.
value | The 16-bit integer to write. |
void Apache::Geode::Client::DataOutput::WriteInt32 | ( | System::Int32 | value | ) |
Write a 32-bit integer to the DataOutput
.
value | The 32-bit integer to write. |
void Apache::Geode::Client::DataOutput::WriteInt64 | ( | System::Int64 | value | ) |
Write a 64-bit integer to the DataOutput
.
value | The 64-bit integer to write. |
void Apache::Geode::Client::DataOutput::WriteIntArray | ( | array< Int32 >^ | value | ) |
Write a int array to the DataOutput.
value | The int array to write. |
void Apache::Geode::Client::DataOutput::WriteLongArray | ( | array< Int64 >^ | value | ) |
Write a long array to the DataOutput.
value | The long array to write. |
void Apache::Geode::Client::DataOutput::WriteObject | ( | Object^ | obj | ) |
Write a Serializable
object to the DataOutput
.
This is provided to conveniently pass primitive types (like string) that shall be implicitly converted to corresponding ISerializable
wrapper types.
obj | The object to write. |
void Apache::Geode::Client::DataOutput::WriteObjectArray | ( | List< Object^>^ | value | ) |
Write a object array to the DataOutput.
value | The object array to write. |
void Apache::Geode::Client::DataOutput::WriteSByte | ( | SByte | value | ) |
Write a signed byte to the DataOutput
.
value | The signed byte to write. |
|
inline |
Write an array of signed bytes to the DataOutput
.
bytes | The array of signed bytes to write. |
void Apache::Geode::Client::DataOutput::WriteSBytes | ( | array< SByte >^ | bytes, |
System::Int32 | len | ||
) |
Write a given length of signed bytes to the DataOutput
.
bytes | The array of signed bytes to write. |
len | The number of bytes from the start of array to write. |
|
inline |
Write an array of signed bytes without its length to the DataOutput
.
bytes | The array of signed bytes to write. |
void Apache::Geode::Client::DataOutput::WriteSBytesOnly | ( | array< SByte >^ | bytes, |
System::UInt32 | len | ||
) |
Write a given length of signed bytes without its length to the DataOutput
.
bytes | The array of signed bytes to write. |
len | The number of bytes from the start of array to write. |
void Apache::Geode::Client::DataOutput::WriteShortArray | ( | array< Int16 >^ | value | ) |
Write a short array to the DataOutput.
value | The short array to write. |
void Apache::Geode::Client::DataOutput::WriteUTF | ( | String^ | value | ) |
Write a string using java-modified UTF-8 encoding to DataOutput
.
The maximum length supported is 2^16-1 beyond which the string shall be truncated.
value | The UTF encoded string to write. |
|
get |
Get the length of current data in the buffer.