Class CompactReader
CompactReader is the base class for CompactBinaryReader.
Inheritance
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public abstract class CompactReader : object
Methods
Read(Byte[], Int32, Int32)
Reads the specifies number of bytes into buffer
.
This method reads directly from the underlying stream.
Declaration
public abstract int Read(byte[] buffer, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | buffer to read into |
System.Int32 | index | starting position in the buffer |
System.Int32 | count | number of bytes to write |
Returns
Type | Description |
---|---|
System.Int32 | number of buffer read |
Read(Char[], Int32, Int32)
Reads the specifies number of bytes into buffer
.
This method reads directly from the underlying stream.
Declaration
public abstract int Read(char[] buffer, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | buffer to read into |
System.Int32 | index | starting position in the buffer |
System.Int32 | count | number of bytes to write |
Returns
Type | Description |
---|---|
System.Int32 | number of chars read |
ReadBoolean()
Reads an object of type
Declaration
public abstract bool ReadBoolean()
Returns
Type | Description |
---|---|
System.Boolean | object read from the stream |
ReadByte()
Reads an object of type
Declaration
public abstract byte ReadByte()
Returns
Type | Description |
---|---|
System.Byte | object read from the stream |
ReadBytes(Int32)
Reads an object of type
Declaration
public abstract byte[] ReadBytes(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | number of bytes read |
Returns
Type | Description |
---|---|
System.Byte[] | object read from the stream |
ReadChar()
Reads an object of type
Declaration
public abstract char ReadChar()
Returns
Type | Description |
---|---|
System.Char | object read from the stream |
ReadChars(Int32)
Reads an object of type
Declaration
public abstract char[] ReadChars(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count |
Returns
Type | Description |
---|---|
System.Char[] | object read from the stream |
ReadDateTime()
Reads an object of type
Declaration
public abstract DateTime ReadDateTime()
Returns
Type | Description |
---|---|
DateTime | object read from the stream |
ReadDecimal()
Reads an object of type
Declaration
public abstract decimal ReadDecimal()
Returns
Type | Description |
---|---|
System.Decimal | object read from the stream |
ReadDouble()
Reads an object of type
Declaration
public abstract double ReadDouble()
Returns
Type | Description |
---|---|
System.Double | object read from the stream |
ReadGuid()
Reads an object of type
Declaration
public abstract Guid ReadGuid()
Returns
Type | Description |
---|---|
Guid | object read from the stream |
ReadInt16()
Reads an object of type
Declaration
public abstract short ReadInt16()
Returns
Type | Description |
---|---|
System.Int16 | object read from the stream |
ReadInt32()
Reads an object of type
Declaration
public abstract int ReadInt32()
Returns
Type | Description |
---|---|
System.Int32 | object read from the stream |
ReadInt64()
Reads an object of type
Declaration
public abstract long ReadInt64()
Returns
Type | Description |
---|---|
System.Int64 | object read from the stream |
ReadObject()
Reads an object of type
Declaration
public abstract object ReadObject()
Returns
Type | Description |
---|---|
System.Object | object read from the stream |
ReadObjectAs<T>()
Declaration
public abstract T ReadObjectAs<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
ReadSByte()
Reads an object of type
Declaration
public virtual sbyte ReadSByte()
Returns
Type | Description |
---|---|
System.SByte | object read from the stream |
ReadSingle()
Reads an object of type
Declaration
public abstract float ReadSingle()
Returns
Type | Description |
---|---|
System.Single | object read from the stream |
ReadString()
Reads an object of type
Declaration
public abstract string ReadString()
Returns
Type | Description |
---|---|
System.String | object read from the stream |
ReadUInt16()
Reads an object of type
Declaration
public virtual ushort ReadUInt16()
Returns
Type | Description |
---|---|
System.UInt16 | object read from the stream |
ReadUInt32()
Reads an object of type
Declaration
public virtual uint ReadUInt32()
Returns
Type | Description |
---|---|
System.UInt32 | object read from the stream |
ReadUInt64()
Reads an object of type
Declaration
public virtual ulong ReadUInt64()
Returns
Type | Description |
---|---|
System.UInt64 | object read from the stream |
SkipBoolean()
Skips an object of type
Declaration
public abstract void SkipBoolean()
SkipByte()
Skips an object of type
Declaration
public abstract void SkipByte()
SkipBytes(Int32)
Skips an object of type
Declaration
public abstract void SkipBytes(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | number of bytes read |
SkipChar()
Skips an object of type
Declaration
public abstract void SkipChar()
SkipChars(Int32)
Skips an object of type
Declaration
public abstract void SkipChars(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count |
SkipDateTime()
Skips an object of type
Declaration
public abstract void SkipDateTime()
SkipDecimal()
Skips an object of type
Declaration
public abstract void SkipDecimal()
SkipDouble()
Skips an object of type
Declaration
public abstract void SkipDouble()
SkipGuid()
Skips an object of type
Declaration
public abstract void SkipGuid()
SkipInt16()
Skips an object of type
Declaration
public abstract void SkipInt16()
SkipInt32()
Skips an object of type
Declaration
public abstract void SkipInt32()
SkipInt64()
Skips an object of type
Declaration
public abstract void SkipInt64()
SkipObject()
Skips an object of type
Declaration
public abstract void SkipObject()
SkipObjectAs<T>()
Declaration
public abstract void SkipObjectAs<T>()
Type Parameters
Name | Description |
---|---|
T |
SkipSByte()
Skips an object of type
Declaration
public virtual void SkipSByte()
SkipSingle()
Skips an object of type
Declaration
public abstract void SkipSingle()
SkipString()
Skips an object of type
Declaration
public abstract void SkipString()
SkipUInt16()
Skips an object of type
Declaration
public virtual void SkipUInt16()
SkipUInt32()
Skips an object of type
Declaration
public virtual void SkipUInt32()
SkipUInt64()
Skips an object of type
Declaration
public virtual void SkipUInt64()