C# Class CSharpUtils.Streams.StreamChunker

Exibir arquivo Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
CopyUpToSequence ( Stream OutputStream, byte Sequence, long MaxReaded = long.MaxValue ) : long
GetUpToSequence ( byte Sequence, long MaxReaded = long.MaxValue ) : byte[]
MakeBytesAvailable ( int NumberOfBytes ) : void
PeekBytes ( int NumberOfBytes ) : byte[]
SkipBytes ( int NumberOfBytes ) : void
SkipUpToSequence ( byte Sequence, long MaxReaded = long.MaxValue ) : long
StreamChunker ( Stream InputStream, int BufferSize = 4096 ) : System

Method Details

CopyUpToSequence() public method

public CopyUpToSequence ( Stream OutputStream, byte Sequence, long MaxReaded = long.MaxValue ) : long
OutputStream Stream
Sequence byte
MaxReaded long
return long

GetUpToSequence() public method

public GetUpToSequence ( byte Sequence, long MaxReaded = long.MaxValue ) : byte[]
Sequence byte
MaxReaded long
return byte[]

MakeBytesAvailable() public method

public MakeBytesAvailable ( int NumberOfBytes ) : void
NumberOfBytes int
return void

PeekBytes() public method

public PeekBytes ( int NumberOfBytes ) : byte[]
NumberOfBytes int
return byte[]

SkipBytes() public method

public SkipBytes ( int NumberOfBytes ) : void
NumberOfBytes int
return void

SkipUpToSequence() public method

public SkipUpToSequence ( byte Sequence, long MaxReaded = long.MaxValue ) : long
Sequence byte
MaxReaded long
return long

StreamChunker() public method

public StreamChunker ( Stream InputStream, int BufferSize = 4096 ) : System
InputStream Stream
BufferSize int
return System