C# Class RocksmithToolkitLib.PsarcLoader.MemoryStreamExtension

Inheritance: Stream
Datei anzeigen Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Protected Properties

Property Type Description
blockSize long
blocks List
length long

Public Methods

Method Description
Flush ( ) : void
MemoryStreamExtension ( ) : System
MemoryStreamExtension ( byte source ) : System
MemoryStreamExtension ( int length ) : System
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
ReadFrom ( Stream source, long length ) : void

Reads length bytes from source into the this instance at the current position.

Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
ToArray ( ) : byte[]

Returns the entire content of the stream as a byte array. This is not safe because the call to new byte[] may fail if the stream is large enough. Where possible use methods which operate on streams directly instead.

Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void
WriteTo ( Stream destination ) : void

Writes the entire stream into destination, regardless of Position, which remains unchanged.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
EnsureCapacity ( long intended_length ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EnsureCapacity() protected method

protected EnsureCapacity ( long intended_length ) : void
intended_length long
return void

Flush() public method

public Flush ( ) : void
return void

MemoryStreamExtension() public method

public MemoryStreamExtension ( ) : System
return System

MemoryStreamExtension() public method

public MemoryStreamExtension ( byte source ) : System
source byte
return System

MemoryStreamExtension() public method

public MemoryStreamExtension ( int length ) : System
length int
return System

Read() public method

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

ReadByte() public method

public ReadByte ( ) : int
return int

ReadFrom() public method

Reads length bytes from source into the this instance at the current position.
public ReadFrom ( Stream source, long length ) : void
source Stream The stream containing the data to copy
length long The number of bytes to copy
return void

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

ToArray() public method

Returns the entire content of the stream as a byte array. This is not safe because the call to new byte[] may fail if the stream is large enough. Where possible use methods which operate on streams directly instead.
public ToArray ( ) : byte[]
return byte[]

Write() public method

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

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

WriteTo() public method

Writes the entire stream into destination, regardless of Position, which remains unchanged.
public WriteTo ( Stream destination ) : void
destination Stream The stream to write the content of this stream to
return void

Property Details

blockSize protected_oe property

protected long blockSize
return long

blocks protected_oe property

protected List blocks
return List

length protected_oe property

protected long length
return long