C# 클래스 Aegis.IO.StreamBuffer

데이터를 순차적으로 읽거나 쓸 수 있는 버퍼입니다. 데이터 쓰기의 경우, 버퍼가 부족하면 자동으로 증가시킵니다. 데이터 읽기의 경우, 쓰기된 크기 이상으로 읽어들일 수 없습니다.
파일 보기 프로젝트 열기: SyncZone/AegisFramework 1 사용 예제들

공개 메소드들

메소드 설명
Capacity ( int size ) : void
Clear ( ) : void
Clone ( ) : StreamBuffer
GetBoolean ( ) : bool
GetBoolean ( StreamBuffer source, int readIndex ) : bool
GetBoolean ( int readIndex ) : bool
GetByte ( ) : byte
GetByte ( StreamBuffer source, int readIndex ) : byte
GetByte ( int readIndex ) : byte
GetChar ( ) : char
GetChar ( StreamBuffer source, int readIndex ) : char
GetChar ( int readIndex ) : char
GetDouble ( ) : double
GetDouble ( StreamBuffer source, int readIndex ) : double
GetDouble ( int readIndex ) : double
GetInt16 ( ) : short
GetInt16 ( StreamBuffer source, int readIndex ) : short
GetInt16 ( int readIndex ) : short
GetInt32 ( ) : int
GetInt32 ( StreamBuffer source, int readIndex ) : int
GetInt32 ( int readIndex ) : int
GetInt64 ( ) : long
GetInt64 ( StreamBuffer source, int readIndex ) : long
GetInt64 ( int readIndex ) : long
GetSByte ( ) : sbyte
GetSByte ( StreamBuffer source, int readIndex ) : sbyte
GetSByte ( int readIndex ) : sbyte
GetStringAsUtf16 ( ) : string
GetStringAsUtf16 ( StreamBuffer source, int readIndex ) : string
GetStringAsUtf16 ( int readIndex ) : string
GetStringAsUtf8 ( ) : string
GetStringAsUtf8 ( int readIndex ) : string
GetUInt16 ( ) : ushort
GetUInt16 ( StreamBuffer source, int readIndex ) : ushort
GetUInt16 ( int readIndex ) : ushort
GetUInt32 ( ) : uint
GetUInt32 ( StreamBuffer source, int readIndex ) : uint
GetUInt32 ( int readIndex ) : uint
GetUInt64 ( ) : ulong
GetUInt64 ( StreamBuffer source, int readIndex ) : ulong
GetUInt64 ( int readIndex ) : ulong
Overwrite ( byte source, int writeIndex ) : void
Overwrite ( byte source, int index, int size, int writeIndex ) : void
Overwrite ( char source, int writeIndex ) : void
OverwriteBoolean ( int writeIndex, bool var ) : void
OverwriteByte ( int writeIndex, byte var ) : void
OverwriteChar ( int writeIndex, char var ) : void
OverwriteDouble ( int writeIndex, double var ) : void
OverwriteInt16 ( int writeIndex, short var ) : void
OverwriteInt32 ( int writeIndex, int var ) : void
OverwriteInt64 ( int writeIndex, long var ) : void
OverwriteSByte ( int writeIndex, sbyte var ) : void
OverwriteUInt16 ( int writeIndex, ushort var ) : void
OverwriteUInt32 ( int writeIndex, uint var ) : void
OverwriteUInt64 ( int writeIndex, ulong var ) : void
PopReadBuffer ( ) : void
PutBoolean ( bool var ) : int
PutByte ( byte var ) : int
PutChar ( char var ) : int
PutDouble ( double var ) : int
PutInt16 ( short var ) : int
PutInt32 ( int var ) : int
PutInt64 ( long var ) : int
PutSByte ( sbyte var ) : int
PutStringAsUtf16 ( string var ) : int
PutStringAsUtf8 ( string var ) : int
PutUInt16 ( ushort var ) : int
PutUInt32 ( uint var ) : int
PutUInt64 ( ulong var ) : int
Read ( ) : byte
Read ( byte destination ) : void
Read ( byte destination, int destinationIndex ) : void
Read ( byte destination, int destinationIndex, int length ) : void
Read ( int size ) : void
ResetReadIndex ( ) : void
ResetWriteIndex ( ) : void
Resize ( int size ) : void
StreamBuffer ( ) : System
StreamBuffer ( StreamBuffer source ) : System
StreamBuffer ( StreamBuffer source, int index, int size ) : System
StreamBuffer ( byte source ) : System
StreamBuffer ( byte source, int index, int size ) : System
StreamBuffer ( int size ) : System
Write ( StreamBuffer source ) : void
Write ( StreamBuffer source, int sourceIndex ) : void
Write ( StreamBuffer source, int sourceIndex, int length ) : void
Write ( byte source ) : void
Write ( byte source, int sourceIndex ) : void
Write ( byte source, int sourceIndex, int length ) : void
Write ( char source ) : void
Write ( int size ) : void
WriteWithParams ( ) : void

보호된 메소드들

메소드 설명
OnWritten ( ) : void

비공개 메소드들

메소드 설명
AllocateBlockSize ( int size ) : int

메소드 상세

Capacity() 공개 메소드

public Capacity ( int size ) : void
size int
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Clone() 공개 메소드

public Clone ( ) : StreamBuffer
리턴 StreamBuffer

GetBoolean() 공개 메소드

public GetBoolean ( ) : bool
리턴 bool

GetBoolean() 공개 정적인 메소드

public static GetBoolean ( StreamBuffer source, int readIndex ) : bool
source StreamBuffer
readIndex int
리턴 bool

GetBoolean() 공개 메소드

public GetBoolean ( int readIndex ) : bool
readIndex int
리턴 bool

GetByte() 공개 메소드

public GetByte ( ) : byte
리턴 byte

GetByte() 공개 정적인 메소드

public static GetByte ( StreamBuffer source, int readIndex ) : byte
source StreamBuffer
readIndex int
리턴 byte

GetByte() 공개 메소드

public GetByte ( int readIndex ) : byte
readIndex int
리턴 byte

GetChar() 공개 메소드

public GetChar ( ) : char
리턴 char

GetChar() 공개 정적인 메소드

public static GetChar ( StreamBuffer source, int readIndex ) : char
source StreamBuffer
readIndex int
리턴 char

GetChar() 공개 메소드

public GetChar ( int readIndex ) : char
readIndex int
리턴 char

GetDouble() 공개 메소드

public GetDouble ( ) : double
리턴 double

GetDouble() 공개 정적인 메소드

public static GetDouble ( StreamBuffer source, int readIndex ) : double
source StreamBuffer
readIndex int
리턴 double

GetDouble() 공개 메소드

public GetDouble ( int readIndex ) : double
readIndex int
리턴 double

GetInt16() 공개 메소드

public GetInt16 ( ) : short
리턴 short

GetInt16() 공개 정적인 메소드

public static GetInt16 ( StreamBuffer source, int readIndex ) : short
source StreamBuffer
readIndex int
리턴 short

GetInt16() 공개 메소드

public GetInt16 ( int readIndex ) : short
readIndex int
리턴 short

GetInt32() 공개 메소드

public GetInt32 ( ) : int
리턴 int

GetInt32() 공개 정적인 메소드

public static GetInt32 ( StreamBuffer source, int readIndex ) : int
source StreamBuffer
readIndex int
리턴 int

GetInt32() 공개 메소드

public GetInt32 ( int readIndex ) : int
readIndex int
리턴 int

GetInt64() 공개 메소드

public GetInt64 ( ) : long
리턴 long

GetInt64() 공개 정적인 메소드

public static GetInt64 ( StreamBuffer source, int readIndex ) : long
source StreamBuffer
readIndex int
리턴 long

GetInt64() 공개 메소드

public GetInt64 ( int readIndex ) : long
readIndex int
리턴 long

GetSByte() 공개 메소드

public GetSByte ( ) : sbyte
리턴 sbyte

GetSByte() 공개 정적인 메소드

public static GetSByte ( StreamBuffer source, int readIndex ) : sbyte
source StreamBuffer
readIndex int
리턴 sbyte

GetSByte() 공개 메소드

public GetSByte ( int readIndex ) : sbyte
readIndex int
리턴 sbyte

GetStringAsUtf16() 공개 메소드

public GetStringAsUtf16 ( ) : string
리턴 string

GetStringAsUtf16() 공개 정적인 메소드

public static GetStringAsUtf16 ( StreamBuffer source, int readIndex ) : string
source StreamBuffer
readIndex int
리턴 string

GetStringAsUtf16() 공개 메소드

public GetStringAsUtf16 ( int readIndex ) : string
readIndex int
리턴 string

GetStringAsUtf8() 공개 메소드

public GetStringAsUtf8 ( ) : string
리턴 string

GetStringAsUtf8() 공개 메소드

public GetStringAsUtf8 ( int readIndex ) : string
readIndex int
리턴 string

GetUInt16() 공개 메소드

public GetUInt16 ( ) : ushort
리턴 ushort

GetUInt16() 공개 정적인 메소드

public static GetUInt16 ( StreamBuffer source, int readIndex ) : ushort
source StreamBuffer
readIndex int
리턴 ushort

GetUInt16() 공개 메소드

public GetUInt16 ( int readIndex ) : ushort
readIndex int
리턴 ushort

GetUInt32() 공개 메소드

public GetUInt32 ( ) : uint
리턴 uint

GetUInt32() 공개 정적인 메소드

public static GetUInt32 ( StreamBuffer source, int readIndex ) : uint
source StreamBuffer
readIndex int
리턴 uint

GetUInt32() 공개 메소드

public GetUInt32 ( int readIndex ) : uint
readIndex int
리턴 uint

GetUInt64() 공개 메소드

public GetUInt64 ( ) : ulong
리턴 ulong

GetUInt64() 공개 정적인 메소드

public static GetUInt64 ( StreamBuffer source, int readIndex ) : ulong
source StreamBuffer
readIndex int
리턴 ulong

GetUInt64() 공개 메소드

public GetUInt64 ( int readIndex ) : ulong
readIndex int
리턴 ulong

OnWritten() 보호된 메소드

protected OnWritten ( ) : void
리턴 void

Overwrite() 공개 메소드

public Overwrite ( byte source, int writeIndex ) : void
source byte
writeIndex int
리턴 void

Overwrite() 공개 메소드

public Overwrite ( byte source, int index, int size, int writeIndex ) : void
source byte
index int
size int
writeIndex int
리턴 void

Overwrite() 공개 메소드

public Overwrite ( char source, int writeIndex ) : void
source char
writeIndex int
리턴 void

OverwriteBoolean() 공개 메소드

public OverwriteBoolean ( int writeIndex, bool var ) : void
writeIndex int
var bool
리턴 void

OverwriteByte() 공개 메소드

public OverwriteByte ( int writeIndex, byte var ) : void
writeIndex int
var byte
리턴 void

OverwriteChar() 공개 메소드

public OverwriteChar ( int writeIndex, char var ) : void
writeIndex int
var char
리턴 void

OverwriteDouble() 공개 메소드

public OverwriteDouble ( int writeIndex, double var ) : void
writeIndex int
var double
리턴 void

OverwriteInt16() 공개 메소드

public OverwriteInt16 ( int writeIndex, short var ) : void
writeIndex int
var short
리턴 void

OverwriteInt32() 공개 메소드

public OverwriteInt32 ( int writeIndex, int var ) : void
writeIndex int
var int
리턴 void

OverwriteInt64() 공개 메소드

public OverwriteInt64 ( int writeIndex, long var ) : void
writeIndex int
var long
리턴 void

OverwriteSByte() 공개 메소드

public OverwriteSByte ( int writeIndex, sbyte var ) : void
writeIndex int
var sbyte
리턴 void

OverwriteUInt16() 공개 메소드

public OverwriteUInt16 ( int writeIndex, ushort var ) : void
writeIndex int
var ushort
리턴 void

OverwriteUInt32() 공개 메소드

public OverwriteUInt32 ( int writeIndex, uint var ) : void
writeIndex int
var uint
리턴 void

OverwriteUInt64() 공개 메소드

public OverwriteUInt64 ( int writeIndex, ulong var ) : void
writeIndex int
var ulong
리턴 void

PopReadBuffer() 공개 메소드

public PopReadBuffer ( ) : void
리턴 void

PutBoolean() 공개 메소드

public PutBoolean ( bool var ) : int
var bool
리턴 int

PutByte() 공개 메소드

public PutByte ( byte var ) : int
var byte
리턴 int

PutChar() 공개 메소드

public PutChar ( char var ) : int
var char
리턴 int

PutDouble() 공개 메소드

public PutDouble ( double var ) : int
var double
리턴 int

PutInt16() 공개 메소드

public PutInt16 ( short var ) : int
var short
리턴 int

PutInt32() 공개 메소드

public PutInt32 ( int var ) : int
var int
리턴 int

PutInt64() 공개 메소드

public PutInt64 ( long var ) : int
var long
리턴 int

PutSByte() 공개 메소드

public PutSByte ( sbyte var ) : int
var sbyte
리턴 int

PutStringAsUtf16() 공개 메소드

public PutStringAsUtf16 ( string var ) : int
var string
리턴 int

PutStringAsUtf8() 공개 메소드

public PutStringAsUtf8 ( string var ) : int
var string
리턴 int

PutUInt16() 공개 메소드

public PutUInt16 ( ushort var ) : int
var ushort
리턴 int

PutUInt32() 공개 메소드

public PutUInt32 ( uint var ) : int
var uint
리턴 int

PutUInt64() 공개 메소드

public PutUInt64 ( ulong var ) : int
var ulong
리턴 int

Read() 공개 메소드

public Read ( ) : byte
리턴 byte

Read() 공개 메소드

public Read ( byte destination ) : void
destination byte
리턴 void

Read() 공개 메소드

public Read ( byte destination, int destinationIndex ) : void
destination byte
destinationIndex int
리턴 void

Read() 공개 메소드

public Read ( byte destination, int destinationIndex, int length ) : void
destination byte
destinationIndex int
length int
리턴 void

Read() 공개 메소드

public Read ( int size ) : void
size int
리턴 void

ResetReadIndex() 공개 메소드

public ResetReadIndex ( ) : void
리턴 void

ResetWriteIndex() 공개 메소드

public ResetWriteIndex ( ) : void
리턴 void

Resize() 공개 메소드

public Resize ( int size ) : void
size int
리턴 void

StreamBuffer() 공개 메소드

public StreamBuffer ( ) : System
리턴 System

StreamBuffer() 공개 메소드

public StreamBuffer ( StreamBuffer source ) : System
source StreamBuffer
리턴 System

StreamBuffer() 공개 메소드

public StreamBuffer ( StreamBuffer source, int index, int size ) : System
source StreamBuffer
index int
size int
리턴 System

StreamBuffer() 공개 메소드

public StreamBuffer ( byte source ) : System
source byte
리턴 System

StreamBuffer() 공개 메소드

public StreamBuffer ( byte source, int index, int size ) : System
source byte
index int
size int
리턴 System

StreamBuffer() 공개 메소드

public StreamBuffer ( int size ) : System
size int
리턴 System

Write() 공개 메소드

public Write ( StreamBuffer source ) : void
source StreamBuffer
리턴 void

Write() 공개 메소드

public Write ( StreamBuffer source, int sourceIndex ) : void
source StreamBuffer
sourceIndex int
리턴 void

Write() 공개 메소드

public Write ( StreamBuffer source, int sourceIndex, int length ) : void
source StreamBuffer
sourceIndex int
length int
리턴 void

Write() 공개 메소드

public Write ( byte source ) : void
source byte
리턴 void

Write() 공개 메소드

public Write ( byte source, int sourceIndex ) : void
source byte
sourceIndex int
리턴 void

Write() 공개 메소드

public Write ( byte source, int sourceIndex, int length ) : void
source byte
sourceIndex int
length int
리턴 void

Write() 공개 메소드

public Write ( char source ) : void
source char
리턴 void

Write() 공개 메소드

public Write ( int size ) : void
size int
리턴 void

WriteWithParams() 공개 메소드

public WriteWithParams ( ) : void
리턴 void