C# 클래스 CSMongo.IO.DynamicStream

Works with bytes that could be modified in different locations at any given time
파일 보기 프로젝트 열기: hugoware/CSMongo 1 사용 예제들

공개 메소드들

메소드 설명
Append ( byte @byte ) : void

Appends the byte to the end of the stream

DynamicStream ( ) : System.Collections.Generic

Creates an empty DynamicStream

DynamicStream ( int length ) : System.Collections.Generic

Creates a stream with the provided length with all 0 bytes

DynamicStream ( int length, byte @default ) : System.Collections.Generic

Creates a stream with the provided length defaulting to the byte specified

InsertAt ( int index, byte bytes ) : void

Inserts a new byte at the specified index

Read ( int start, int length ) : byte[]

Reads the bytes within the specified area

ToArray ( ) : byte[]

Returns all of the bytes for the stream as an array

WriteAt ( int index, byte @byte ) : void

Overwrites the byte at the specified index

비공개 메소드들

메소드 설명
_Reset ( ) : void

메소드 상세

Append() 공개 메소드

Appends the byte to the end of the stream
public Append ( byte @byte ) : void
@byte byte
리턴 void

DynamicStream() 공개 메소드

Creates an empty DynamicStream
public DynamicStream ( ) : System.Collections.Generic
리턴 System.Collections.Generic

DynamicStream() 공개 메소드

Creates a stream with the provided length with all 0 bytes
public DynamicStream ( int length ) : System.Collections.Generic
length int
리턴 System.Collections.Generic

DynamicStream() 공개 메소드

Creates a stream with the provided length defaulting to the byte specified
public DynamicStream ( int length, byte @default ) : System.Collections.Generic
length int
@default byte
리턴 System.Collections.Generic

InsertAt() 공개 메소드

Inserts a new byte at the specified index
public InsertAt ( int index, byte bytes ) : void
index int
bytes byte
리턴 void

Read() 공개 메소드

Reads the bytes within the specified area
public Read ( int start, int length ) : byte[]
start int
length int
리턴 byte[]

ToArray() 공개 메소드

Returns all of the bytes for the stream as an array
public ToArray ( ) : byte[]
리턴 byte[]

WriteAt() 공개 메소드

Overwrites the byte at the specified index
public WriteAt ( int index, byte @byte ) : void
index int
@byte byte
리턴 void