Keyoti RapidSpell Desktop .NET API Docs
Read Method (buffer, offset, count)
APIKeyoti.RapidSpell.CompressionDeflateStreamRead(array<Byte>[]()[][], Int32, Int32)
Keyoti RapidSpell Desktop .NET
Read data from the stream.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public override int Read(
	byte[] buffer,
	int offset,
	int count
)
public override int Read(
	byte[] buffer,
	int offset,
	int count
)
Public Overrides Function Read ( 
	buffer As Byte(),
	offset As Integer,
	count As Integer
) As Integer
Public Overrides Function Read ( 
	buffer As Byte(),
	offset As Integer,
	count As Integer
) As Integer
public:
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override
public:
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override
abstract Read : 
        buffer : byte[] * 
        offset : int * 
        count : int -> int 
override Read : 
        buffer : byte[] * 
        offset : int * 
        count : int -> int 
abstract Read : 
        buffer : byte[] * 
        offset : int * 
        count : int -> int 
override Read : 
        buffer : byte[] * 
        offset : int * 
        count : int -> int 
Parameters
buffer (array<Byte>[]()[][])
The buffer into which the read data should be placed.
offset (Int32)
the offset within that data array to put the first byte read.
count (Int32)
the number of bytes to read.
Return Value
Int32
the number of bytes actually read
Remarks

If you wish to use the DeflateStream to compress data while reading, you can create a DeflateStream with CompressionMode.Compress, providing an uncompressed data stream. Then call Read() on that DeflateStream, and the data read will be compressed as you read. If you wish to use the DeflateStream to decompress data while reading, you can create a DeflateStream with CompressionMode.Decompress, providing a readable compressed data stream. Then call Read() on that DeflateStream, and the data read will be decompressed as you read.

A DeflateStream can be used for Read() or Write(), but not both.

Assembly: Keyoti.RapidSpell.NET4 (Module: Keyoti.RapidSpell.NET4.dll) Version: 6.2.21.412