C# 클래스 Lz4Net.Lz4CompressionStream

Stream to compress and write back data
상속: Stream
파일 보기 프로젝트 열기: khalidsalomao/lz4-net 1 사용 예제들

공개 메소드들

메소드 설명
Flush ( ) : void

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Lz4CompressionStream ( Stream targetStream, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System

Initializes a new instance of the ZlibCompressionStream class.

Lz4CompressionStream ( Stream targetStream, byte writeBuffer, byte compressionBuffer, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System

Initializes a new instance of the ZlibCompressionStream class.

Lz4CompressionStream ( Stream targetStream, int bufferSize, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System

Initializes a new instance of the ZlibCompressionStream class.

Read ( byte buffer, int offset, int count ) : int

[NotSupported] Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Seek ( long offset, SeekOrigin origin ) : long

[NotSupported] Sets the position within the current stream.

SetLength ( long value ) : void

Sets the length of the current stream.

Write ( byte buffer, int offset, int count ) : void

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.

메소드 상세

Dispose() 보호된 메소드

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Flush() 공개 메소드

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
/// An I/O error occurs. ///
public Flush ( ) : void
리턴 void

Lz4CompressionStream() 공개 메소드

Initializes a new instance of the ZlibCompressionStream class.
public Lz4CompressionStream ( Stream targetStream, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System
targetStream Stream The target.
mode Lz4Mode
closeStream bool The close stream.
리턴 System

Lz4CompressionStream() 공개 메소드

Initializes a new instance of the ZlibCompressionStream class.
public Lz4CompressionStream ( Stream targetStream, byte writeBuffer, byte compressionBuffer, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System
targetStream Stream The target stream.
writeBuffer byte The write buffer.
compressionBuffer byte The compression buffer.
mode Lz4Mode
closeStream bool The close stream.
리턴 System

Lz4CompressionStream() 공개 메소드

Initializes a new instance of the ZlibCompressionStream class.
public Lz4CompressionStream ( Stream targetStream, int bufferSize, Lz4Mode mode = Lz4Mode.Fast, bool closeStream = false ) : System
targetStream Stream The target.
bufferSize int Size of the buffer.
mode Lz4Mode
closeStream bool The close stream.
리턴 System

Read() 공개 메소드

[NotSupported] Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
/// The sum of and is larger than the buffer length. /// /// is null. /// /// or is negative. /// /// An I/O error occurs. /// /// The stream does not support reading. /// /// Methods were called after the stream was closed. ///
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 and ( + - 1) replaced by the bytes read from the current source.
offset int The zero-based byte offset in at which to begin storing the data read from the current stream.
count int The maximum number of bytes to be read from the current stream.
리턴 int

Seek() 공개 메소드

[NotSupported] Sets the position within the current stream.
/// An I/O error occurs. /// /// The stream does not support seeking, such as if the stream is constructed from a pipe or console output. /// /// Methods were called after the stream was closed. ///
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point used to obtain the new position.
리턴 long

SetLength() 공개 메소드

Sets the length of the current stream.
An I/O error occurs. The stream does not support /// both writing and seeking, such as if the stream is constructed from a pipe or /// console output. Methods were called after /// the stream was closed.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
리턴 void

Write() 공개 메소드

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
/// The sum of and is greater than the buffer length. /// /// is null. /// /// or is negative. /// /// An I/O error occurs. /// /// The stream does not support writing. /// /// Methods were called after the stream was closed. ///
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies bytes from to the current stream.
offset int The zero-based byte offset in at which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
리턴 void