메소드 | 설명 | |
---|---|---|
Flush ( ) : void |
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
|
|
LZ4Stream ( Stream innerStream, CompressionMode compressionMode, LZ4StreamFlags compressionFlags = LZ4StreamFlags.Default, int blockSize = 1024*1024 ) : System |
Initializes a new instance of the LZ4Stream class.
|
|
LZ4Stream ( Stream innerStream, LZ4StreamMode compressionMode, LZ4StreamFlags compressionFlags = LZ4StreamFlags.Default, int blockSize = 1024*1024 ) : System |
Initializes a new instance of the LZ4Stream class.
|
|
Read ( byte buffer, int offset, int count ) : int |
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
ReadByte ( ) : int |
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
When overridden in a derived class, sets the position within the current stream.
|
|
SetLength ( long value ) : void |
When overridden in a derived class, sets the length of the current stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
|
WriteByte ( byte value ) : void |
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
|
메소드 | 설명 | |
---|---|---|
AcquireNextChunk ( ) : bool |
Reads the next chunk from stream.
|
|
CombineLZ4Flags ( bool highCompression, bool interactiveRead ) : LZ4StreamFlags |
Combines the LZ4 flags.
|
|
EndOfStream ( ) : |
Returns EndOfStreamException.
|
|
FlushCurrentChunk ( ) : void |
Flushes current chunk.
|
|
LZ4Stream ( Stream innerStream, CompressionMode compressionMode, bool highCompression, int blockSize = 1024*1024, bool interactiveRead = false ) : System | ||
LZ4Stream ( Stream innerStream, LZ4StreamMode compressionMode, bool highCompression, int blockSize = 1024*1024, bool interactiveRead = false ) : System | ||
NotSupported ( string operationName ) : |
Returns NotSupportedException.
|
|
ReadBlock ( byte buffer, int offset, int length ) : int |
Reads the block of bytes. Contrary to Stream.Read does not read partial data if possible. If there is no data (yet) it waits.
|
|
ReadVarInt ( ) : ulong |
Reads the variable length int. Work with assumption that value is in the stream and throws exception if it isn't. If you want to check if value is in the stream use TryReadVarInt instead.
|
|
ToLZ4StreamMode ( CompressionMode compressionMode ) : LZ4StreamMode |
Converts CompressionMode to LZ4StreamMode.
|
|
TryReadVarInt ( ulong &result ) : bool |
Tries to read variable length int.
|
|
WriteVarInt ( ulong value ) : void |
Writes the variable length integer.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
리턴 | void |
public LZ4Stream ( Stream innerStream, CompressionMode compressionMode, LZ4StreamFlags compressionFlags = LZ4StreamFlags.Default, int blockSize = 1024*1024 ) : System | ||
innerStream | Stream | The inner stream. |
compressionMode | CompressionMode | The compression mode. |
compressionFlags | LZ4StreamFlags | The compression flags. |
blockSize | int | Size of the block. |
리턴 | System |
public LZ4Stream ( Stream innerStream, LZ4StreamMode compressionMode, LZ4StreamFlags compressionFlags = LZ4StreamFlags.Default, int blockSize = 1024*1024 ) : System | ||
innerStream | Stream | The inner stream. |
compressionMode | LZ4StreamMode | The compression mode. |
compressionFlags | LZ4StreamFlags | The compression flags. |
blockSize | int | Size of the block. |
리턴 | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between |
offset | int | The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
리턴 | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the |
origin | SeekOrigin | A value of type |
리턴 | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the current stream in bytes. |
리턴 | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
리턴 | void |
public WriteByte ( byte value ) : void | ||
value | byte | The byte to write to the stream. |
리턴 | void |