C# 클래스 FourRoads.TelligentCommunity.RenderingHelper.MemoryBlockStream

An efficient memory stream implementation that sacrifices the ability to get access to the internal byte buffer in order to drastically improve performance.
상속: Stream
파일 보기 프로젝트 열기: 4-Roads/FourRoads.TelligentCommunity 1 사용 예제들

공개 메소드들

메소드 설명
Flush ( ) : void

Flushes any internal output buffers.

MemoryBlockStream ( ) : System

Initializes a new instance of the MemoryBlockStream class.

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

Reads data into the specified buffer.

Seek ( long offset, SeekOrigin origin ) : long

Seeks to the specified offset.

SetLength ( long value ) : void

Sets the length.

ToArray ( ) : byte[]

Copies the memory stream into a byte array.

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

Writes the specified buffer.

보호된 메소드들

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

Dispose the specified disposing.

비공개 메소드들

메소드 설명
CheckDisposed ( ) : void
ValidateArguments ( byte buffer, int offset, int count ) : void

메소드 상세

Dispose() 보호된 메소드

Dispose the specified disposing.
protected Dispose ( bool disposing ) : void
disposing bool If set to true disposing.
리턴 void

Flush() 공개 메소드

Flushes any internal output buffers.
/// The stream has been disposed. /// /// The stream does not support writing. ///
public Flush ( ) : void
리턴 void

MemoryBlockStream() 공개 메소드

Initializes a new instance of the MemoryBlockStream class.
public MemoryBlockStream ( ) : System
리턴 System

Read() 공개 메소드

Reads data into the specified buffer.
/// The stream has been disposed. ///
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to read data into.
offset int The offset into the buffer to start reading data.
count int The number of bytes to read.
리턴 int

Seek() 공개 메소드

Seeks to the specified offset.
/// The stream has been disposed. /// /// is not a valid . /// /// An I/O error occurred. ///
public Seek ( long offset, SeekOrigin origin ) : long
offset long The offset from the specified origin.
origin SeekOrigin The origin from which to seek.
리턴 long

SetLength() 공개 메소드

Sets the length.
/// is out of range. /// /// The stream has been disposed. ///
public SetLength ( long value ) : void
value long The new length.
리턴 void

ToArray() 공개 메소드

Copies the memory stream into a byte array.
public ToArray ( ) : byte[]
리턴 byte[]

Write() 공개 메소드

Writes the specified buffer.
/// The stream has been disposed. /// /// The stream does not support writing. ///
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer to write.
offset int The offset of the first byte to write.
count int The number of bytes to write.
리턴 void