C# Class Aegis.IO.StreamBuffer

데이터를 순차적으로 읽거나 쓸 수 있는 버퍼입니다. 데이터 쓰기의 경우, 버퍼가 부족하면 자동으로 증가시킵니다. 데이터 읽기의 경우, 쓰기된 크기 이상으로 읽어들일 수 없습니다.
Datei anzeigen Open project: SyncZone/AegisFramework Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
OnWritten ( ) : void

Private Methods

Method Description
AllocateBlockSize ( int size ) : int

Method Details

Capacity() public method

public Capacity ( int size ) : void
size int
return void

Clear() public method

public Clear ( ) : void
return void

Clone() public method

public Clone ( ) : StreamBuffer
return StreamBuffer

GetBoolean() public method

public GetBoolean ( ) : bool
return bool

GetBoolean() public static method

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

GetBoolean() public method

public GetBoolean ( int readIndex ) : bool
readIndex int
return bool

GetByte() public method

public GetByte ( ) : byte
return byte

GetByte() public static method

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

GetByte() public method

public GetByte ( int readIndex ) : byte
readIndex int
return byte

GetChar() public method

public GetChar ( ) : char
return char

GetChar() public static method

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

GetChar() public method

public GetChar ( int readIndex ) : char
readIndex int
return char

GetDouble() public method

public GetDouble ( ) : double
return double

GetDouble() public static method

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

GetDouble() public method

public GetDouble ( int readIndex ) : double
readIndex int
return double

GetInt16() public method

public GetInt16 ( ) : short
return short

GetInt16() public static method

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

GetInt16() public method

public GetInt16 ( int readIndex ) : short
readIndex int
return short

GetInt32() public method

public GetInt32 ( ) : int
return int

GetInt32() public static method

public static GetInt32 ( StreamBuffer source, int readIndex ) : int
source StreamBuffer
readIndex int
return int

GetInt32() public method

public GetInt32 ( int readIndex ) : int
readIndex int
return int

GetInt64() public method

public GetInt64 ( ) : long
return long

GetInt64() public static method

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

GetInt64() public method

public GetInt64 ( int readIndex ) : long
readIndex int
return long

GetSByte() public method

public GetSByte ( ) : sbyte
return sbyte

GetSByte() public static method

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

GetSByte() public method

public GetSByte ( int readIndex ) : sbyte
readIndex int
return sbyte

GetStringAsUtf16() public method

public GetStringAsUtf16 ( ) : string
return string

GetStringAsUtf16() public static method

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

GetStringAsUtf16() public method

public GetStringAsUtf16 ( int readIndex ) : string
readIndex int
return string

GetStringAsUtf8() public method

public GetStringAsUtf8 ( ) : string
return string

GetStringAsUtf8() public method

public GetStringAsUtf8 ( int readIndex ) : string
readIndex int
return string

GetUInt16() public method

public GetUInt16 ( ) : ushort
return ushort

GetUInt16() public static method

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

GetUInt16() public method

public GetUInt16 ( int readIndex ) : ushort
readIndex int
return ushort

GetUInt32() public method

public GetUInt32 ( ) : uint
return uint

GetUInt32() public static method

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

GetUInt32() public method

public GetUInt32 ( int readIndex ) : uint
readIndex int
return uint

GetUInt64() public method

public GetUInt64 ( ) : ulong
return ulong

GetUInt64() public static method

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

GetUInt64() public method

public GetUInt64 ( int readIndex ) : ulong
readIndex int
return ulong

OnWritten() protected method

protected OnWritten ( ) : void
return void

Overwrite() public method

public Overwrite ( byte source, int writeIndex ) : void
source byte
writeIndex int
return void

Overwrite() public method

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

Overwrite() public method

public Overwrite ( char source, int writeIndex ) : void
source char
writeIndex int
return void

OverwriteBoolean() public method

public OverwriteBoolean ( int writeIndex, bool var ) : void
writeIndex int
var bool
return void

OverwriteByte() public method

public OverwriteByte ( int writeIndex, byte var ) : void
writeIndex int
var byte
return void

OverwriteChar() public method

public OverwriteChar ( int writeIndex, char var ) : void
writeIndex int
var char
return void

OverwriteDouble() public method

public OverwriteDouble ( int writeIndex, double var ) : void
writeIndex int
var double
return void

OverwriteInt16() public method

public OverwriteInt16 ( int writeIndex, short var ) : void
writeIndex int
var short
return void

OverwriteInt32() public method

public OverwriteInt32 ( int writeIndex, int var ) : void
writeIndex int
var int
return void

OverwriteInt64() public method

public OverwriteInt64 ( int writeIndex, long var ) : void
writeIndex int
var long
return void

OverwriteSByte() public method

public OverwriteSByte ( int writeIndex, sbyte var ) : void
writeIndex int
var sbyte
return void

OverwriteUInt16() public method

public OverwriteUInt16 ( int writeIndex, ushort var ) : void
writeIndex int
var ushort
return void

OverwriteUInt32() public method

public OverwriteUInt32 ( int writeIndex, uint var ) : void
writeIndex int
var uint
return void

OverwriteUInt64() public method

public OverwriteUInt64 ( int writeIndex, ulong var ) : void
writeIndex int
var ulong
return void

PopReadBuffer() public method

public PopReadBuffer ( ) : void
return void

PutBoolean() public method

public PutBoolean ( bool var ) : int
var bool
return int

PutByte() public method

public PutByte ( byte var ) : int
var byte
return int

PutChar() public method

public PutChar ( char var ) : int
var char
return int

PutDouble() public method

public PutDouble ( double var ) : int
var double
return int

PutInt16() public method

public PutInt16 ( short var ) : int
var short
return int

PutInt32() public method

public PutInt32 ( int var ) : int
var int
return int

PutInt64() public method

public PutInt64 ( long var ) : int
var long
return int

PutSByte() public method

public PutSByte ( sbyte var ) : int
var sbyte
return int

PutStringAsUtf16() public method

public PutStringAsUtf16 ( string var ) : int
var string
return int

PutStringAsUtf8() public method

public PutStringAsUtf8 ( string var ) : int
var string
return int

PutUInt16() public method

public PutUInt16 ( ushort var ) : int
var ushort
return int

PutUInt32() public method

public PutUInt32 ( uint var ) : int
var uint
return int

PutUInt64() public method

public PutUInt64 ( ulong var ) : int
var ulong
return int

Read() public method

public Read ( ) : byte
return byte

Read() public method

public Read ( byte destination ) : void
destination byte
return void

Read() public method

public Read ( byte destination, int destinationIndex ) : void
destination byte
destinationIndex int
return void

Read() public method

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

Read() public method

public Read ( int size ) : void
size int
return void

ResetReadIndex() public method

public ResetReadIndex ( ) : void
return void

ResetWriteIndex() public method

public ResetWriteIndex ( ) : void
return void

Resize() public method

public Resize ( int size ) : void
size int
return void

StreamBuffer() public method

public StreamBuffer ( ) : System
return System

StreamBuffer() public method

public StreamBuffer ( StreamBuffer source ) : System
source StreamBuffer
return System

StreamBuffer() public method

public StreamBuffer ( StreamBuffer source, int index, int size ) : System
source StreamBuffer
index int
size int
return System

StreamBuffer() public method

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

StreamBuffer() public method

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

StreamBuffer() public method

public StreamBuffer ( int size ) : System
size int
return System

Write() public method

public Write ( StreamBuffer source ) : void
source StreamBuffer
return void

Write() public method

public Write ( StreamBuffer source, int sourceIndex ) : void
source StreamBuffer
sourceIndex int
return void

Write() public method

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

Write() public method

public Write ( byte source ) : void
source byte
return void

Write() public method

public Write ( byte source, int sourceIndex ) : void
source byte
sourceIndex int
return void

Write() public method

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

Write() public method

public Write ( char source ) : void
source char
return void

Write() public method

public Write ( int size ) : void
size int
return void

WriteWithParams() public method

public WriteWithParams ( ) : void
return void