VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: IDataOutput Interface Reference
VMware Tanzu GemFire .NET Client
IDataOutput Interface Reference

Provides operations for writing primitive data values, and user-defined objects implementing ISerializable, to a byte stream. This class is intentionally not thread safe. More...

Inherited by IDataOutputExtended.

Public Member Functions

int GetBufferLength ()
 Gets length of the DataOutput buffer. More...
 
void WriteArrayLen (int len)
 Write length of the ICollection to the DataOutput. More...
 
void WriteSByte (sbyte value)
 Write a signed byte to the DataOutput. More...
 
void WriteBoolean (bool value)
 Write a boolean value to the DataOutput. More...
 
void WriteChar (char value)
 Write a char value to the DataOutput. More...
 
void WriteSBytesOnly (sbyte[] bytes)
 Write an array of signed bytes without its length to the DataOutput. More...
 
void WriteSBytes (sbyte[] bytes, int len)
 Write an array of signed bytes to the DataOutput. More...
 
void WriteSBytes (sbyte[] bytes)
 Write an array of signed bytes to the DataOutput. More...
 
void WriteBytesOnly (byte[] bytes, int len, int offset)
 Write an IReadOnlyCollection of bytes without its length to the DataOutput. More...
 
void WriteBytesOnly (byte[] bytes, int len)
 Write an IReadOnlyCollection of bytes without its length to the DataOutput. More...
 
void WriteBytes (byte[] bytes, int len)
 Write an IReadOnlyCollection of bytes to the DataOutput. More...
 
void WriteByte (byte value)
 Write a 8-bit unsigned integer to the DataOutput. More...
 
void WriteInt16 (short value)
 Write a 16-bit integer to the DataOutput. More...
 
void WriteInt32 (int value)
 Write a 32-bit integer to the DataOutput. More...
 
void WriteInt64 (long value)
 Write a 64-bit integer to the DataOutput. More...
 
void WriteFloat (float value)
 Write a float to the DataOutput. More...
 
void WriteDouble (double value)
 Write a double precision real number to the DataOutput. More...
 
void WriteString (string value)
 Write a string to the DataOutput. More...
 
void WriteObject (dynamic 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. More...
 
void AdvanceCursor (int offset)
 Advance the buffer cursor by the given offset. More...
 
void RewindCursor (int offset)
 Rewind the buffer cursor by the given offset. More...
 
void Reset ()
 Reset the cursor to the start of the buffer. More...
 
void WriteDictionary (IReadOnlyDictionary< object, object > value)
 Write a Dictionary to the DataOutput. More...
 
void WriteDate (DateTime value)
 Write a date to the DataOutput. More...
 
void WriteCharArray (char[] value)
 Write a char IReadOnlyCollection to the DataOutput. More...
 
void WriteBooleanArray (bool[] value)
 Write a bool IReadOnlyCollection to the DataOutput. More...
 
void WriteShortArray (short[] value)
 Write a short IReadOnlyCollection to the DataOutput. More...
 
void WriteIntArray (int[] value)
 Write a int IReadOnlyCollection to the DataOutput. More...
 
void WriteLongArray (long[] value)
 Write a long IReadOnlyCollection to the DataOutput. More...
 
void WriteFloatArray (float[] value)
 Write a float IReadOnlyCollection to the DataOutput. More...
 
void WriteDoubleArray (double[] value)
 Write a double IReadOnlyCollection to the DataOutput. More...
 
void WriteObjectArray (object[] value)
 Write a object IReadOnlyCollection to the DataOutput. More...
 
void WriteStringArray (string[] value)
 Write a string array to the DataOutput. More...
 
void WriteArrayOfByteArrays (byte[][] value)
 Write a IReadOnlyCollection of sign byte IReadOnlyCollection to the DataOutput. More...
 

Properties

IReadOnlyCollection< byte > Buffer [get]
 Get a copy of the current buffer. More...
 
ITypeRegistry TypeRegistry [get, set]
 Get a copy of the TypeRegistry. More...
 

Detailed Description

Provides operations for writing primitive data values, and user-defined objects implementing ISerializable, to a byte stream. This class is intentionally not thread safe.

Member Function Documentation

◆ AdvanceCursor()

void IDataOutput.AdvanceCursor ( int  offset)

Advance the buffer cursor by the given offset.

Parameters
offsetThe offset by which to advance the cursor.

◆ GetBufferLength()

int IDataOutput.GetBufferLength ( )

Gets length of the DataOutput buffer.

◆ Reset()

void IDataOutput.Reset ( )

Reset the cursor to the start of the buffer.

◆ RewindCursor()

void IDataOutput.RewindCursor ( int  offset)

Rewind the buffer cursor by the given offset.

Parameters
offsetThe offset by which to rewind the cursor.

◆ WriteArrayLen()

void IDataOutput.WriteArrayLen ( int  len)

Write length of the ICollection to the DataOutput.

Parameters
lenArray len to write.

◆ WriteArrayOfByteArrays()

void IDataOutput.WriteArrayOfByteArrays ( byte  value[][])

Write a IReadOnlyCollection of sign byte IReadOnlyCollection to the DataOutput.

Parameters
valueThe IReadOnlyCollection of sign byte IReadOnlyCollection to write.

◆ WriteBoolean()

void IDataOutput.WriteBoolean ( bool  value)

Write a boolean value to the DataOutput.

Parameters
valueThe boolean value to write.

◆ WriteBooleanArray()

void IDataOutput.WriteBooleanArray ( bool[]  value)

Write a bool IReadOnlyCollection to the DataOutput.

Parameters
valueThe bool IReadOnlyCollection to write.

◆ WriteByte()

void IDataOutput.WriteByte ( byte  value)

Write a 8-bit unsigned integer to the DataOutput.

Parameters
valueThe 8-bit unsigned integer to write.

◆ WriteBytes()

void IDataOutput.WriteBytes ( byte[]  bytes,
int  len 
)

Write an IReadOnlyCollection of bytes to the DataOutput.

Parameters
bytesThe IReadOnlyCollection of bytes to write.
lenlength of bytes to be written

◆ WriteBytesOnly() [1/2]

void IDataOutput.WriteBytesOnly ( byte[]  bytes,
int  len 
)

Write an IReadOnlyCollection of bytes without its length to the DataOutput.

Parameters
bytesThe IReadOnlyCollection of bytes to write.
lenlength of bytes to be written

◆ WriteBytesOnly() [2/2]

void IDataOutput.WriteBytesOnly ( byte[]  bytes,
int  len,
int  offset 
)

Write an IReadOnlyCollection of bytes without its length to the DataOutput.

Parameters
bytesThe IReadOnlyCollection of bytes to write.
lenlength of bytes to be written
offsetoffset in the byte array to begin writing

◆ WriteChar()

void IDataOutput.WriteChar ( char  value)

Write a char value to the DataOutput.

Parameters
valueThe char value to write.

◆ WriteCharArray()

void IDataOutput.WriteCharArray ( char[]  value)

Write a char IReadOnlyCollection to the DataOutput.

Parameters
valueThe char IReadOnlyCollection to write.

◆ WriteDate()

void IDataOutput.WriteDate ( DateTime  value)

Write a date to the DataOutput.

Parameters
valueThe date value to write.

◆ WriteDictionary()

void IDataOutput.WriteDictionary ( IReadOnlyDictionary< object, object >  value)

Write a Dictionary to the DataOutput.

Parameters
valueThe object which implements IReadOnlyDictionary to write.

◆ WriteDouble()

void IDataOutput.WriteDouble ( double  value)

Write a double precision real number to the DataOutput.

Parameters
valueThe double precision real number to write.

◆ WriteDoubleArray()

void IDataOutput.WriteDoubleArray ( double[]  value)

Write a double IReadOnlyCollection to the DataOutput.

Parameters
valueThe double IReadOnlyCollection to write.

◆ WriteFloat()

void IDataOutput.WriteFloat ( float  value)

Write a float to the DataOutput.

Parameters
valueThe float value to write.

◆ WriteFloatArray()

void IDataOutput.WriteFloatArray ( float[]  value)

Write a float IReadOnlyCollection to the DataOutput.

Parameters
valueThe float IReadOnlyCollection to write.

◆ WriteInt16()

void IDataOutput.WriteInt16 ( short  value)

Write a 16-bit integer to the DataOutput.

Parameters
valueThe 16-bit integer to write.

◆ WriteInt32()

void IDataOutput.WriteInt32 ( int  value)

Write a 32-bit integer to the DataOutput.

Parameters
valueThe 32-bit integer to write.

◆ WriteInt64()

void IDataOutput.WriteInt64 ( long  value)

Write a 64-bit integer to the DataOutput.

Parameters
valueThe 64-bit integer to write.

◆ WriteIntArray()

void IDataOutput.WriteIntArray ( int[]  value)

Write a int IReadOnlyCollection to the DataOutput.

Parameters
valueThe int IReadOnlyCollection to write.

◆ WriteLongArray()

void IDataOutput.WriteLongArray ( long[]  value)

Write a long IReadOnlyCollection to the DataOutput.

Parameters
valueThe long IReadOnlyCollection to write.

◆ WriteObject()

void IDataOutput.WriteObject ( dynamic  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.

Parameters
objThe object to write.

◆ WriteObjectArray()

void IDataOutput.WriteObjectArray ( object[]  value)

Write a object IReadOnlyCollection to the DataOutput.

Parameters
valueThe object IReadOnlyCollection to write.

◆ WriteSByte()

void IDataOutput.WriteSByte ( sbyte  value)

Write a signed byte to the DataOutput.

Parameters
valueThe signed byte to write.

◆ WriteSBytes() [1/2]

void IDataOutput.WriteSBytes ( sbyte[]  bytes)

Write an array of signed bytes to the DataOutput.

Parameters
bytesThe array of signed bytes to write.

◆ WriteSBytes() [2/2]

void IDataOutput.WriteSBytes ( sbyte[]  bytes,
int  len 
)

Write an array of signed bytes to the DataOutput.

Parameters
bytesThe array of signed bytes to write.
lennumber of bytes to write

◆ WriteSBytesOnly()

void IDataOutput.WriteSBytesOnly ( sbyte[]  bytes)

Write an array of signed bytes without its length to the DataOutput.

Parameters
bytesThe array of signed bytes to write.

◆ WriteShortArray()

void IDataOutput.WriteShortArray ( short[]  value)

Write a short IReadOnlyCollection to the DataOutput.

Parameters
valueThe short IReadOnlyCollection to write.

◆ WriteString()

void IDataOutput.WriteString ( string  value)

Write a string to the DataOutput.

Parameters
valuestring to be written.

◆ WriteStringArray()

void IDataOutput.WriteStringArray ( string[]  value)

Write a string array to the DataOutput.

Parameters
valueThe string array to write.

Property Documentation

◆ Buffer

IReadOnlyCollection<byte> IDataOutput.Buffer
get

Get a copy of the current buffer.

◆ TypeRegistry

ITypeRegistry IDataOutput.TypeRegistry
getset

Get a copy of the TypeRegistry.


The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/IDataOutput.cs