C# Class Aegis.IO.StreamBuffer

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnWritten ( ) : void

Private Methods

Méthode Description
AllocateBlockSize ( int size ) : int

Method Details

Capacity() public méthode

public Capacity ( int size ) : void
size int
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Clone() public méthode

public Clone ( ) : StreamBuffer
Résultat StreamBuffer

GetBoolean() public méthode

public GetBoolean ( ) : bool
Résultat bool

GetBoolean() public static méthode

public static GetBoolean ( StreamBuffer source, int readIndex ) : bool
source StreamBuffer
readIndex int
Résultat bool

GetBoolean() public méthode

public GetBoolean ( int readIndex ) : bool
readIndex int
Résultat bool

GetByte() public méthode

public GetByte ( ) : byte
Résultat byte

GetByte() public static méthode

public static GetByte ( StreamBuffer source, int readIndex ) : byte
source StreamBuffer
readIndex int
Résultat byte

GetByte() public méthode

public GetByte ( int readIndex ) : byte
readIndex int
Résultat byte

GetChar() public méthode

public GetChar ( ) : char
Résultat char

GetChar() public static méthode

public static GetChar ( StreamBuffer source, int readIndex ) : char
source StreamBuffer
readIndex int
Résultat char

GetChar() public méthode

public GetChar ( int readIndex ) : char
readIndex int
Résultat char

GetDouble() public méthode

public GetDouble ( ) : double
Résultat double

GetDouble() public static méthode

public static GetDouble ( StreamBuffer source, int readIndex ) : double
source StreamBuffer
readIndex int
Résultat double

GetDouble() public méthode

public GetDouble ( int readIndex ) : double
readIndex int
Résultat double

GetInt16() public méthode

public GetInt16 ( ) : short
Résultat short

GetInt16() public static méthode

public static GetInt16 ( StreamBuffer source, int readIndex ) : short
source StreamBuffer
readIndex int
Résultat short

GetInt16() public méthode

public GetInt16 ( int readIndex ) : short
readIndex int
Résultat short

GetInt32() public méthode

public GetInt32 ( ) : int
Résultat int

GetInt32() public static méthode

public static GetInt32 ( StreamBuffer source, int readIndex ) : int
source StreamBuffer
readIndex int
Résultat int

GetInt32() public méthode

public GetInt32 ( int readIndex ) : int
readIndex int
Résultat int

GetInt64() public méthode

public GetInt64 ( ) : long
Résultat long

GetInt64() public static méthode

public static GetInt64 ( StreamBuffer source, int readIndex ) : long
source StreamBuffer
readIndex int
Résultat long

GetInt64() public méthode

public GetInt64 ( int readIndex ) : long
readIndex int
Résultat long

GetSByte() public méthode

public GetSByte ( ) : sbyte
Résultat sbyte

GetSByte() public static méthode

public static GetSByte ( StreamBuffer source, int readIndex ) : sbyte
source StreamBuffer
readIndex int
Résultat sbyte

GetSByte() public méthode

public GetSByte ( int readIndex ) : sbyte
readIndex int
Résultat sbyte

GetStringAsUtf16() public méthode

public GetStringAsUtf16 ( ) : string
Résultat string

GetStringAsUtf16() public static méthode

public static GetStringAsUtf16 ( StreamBuffer source, int readIndex ) : string
source StreamBuffer
readIndex int
Résultat string

GetStringAsUtf16() public méthode

public GetStringAsUtf16 ( int readIndex ) : string
readIndex int
Résultat string

GetStringAsUtf8() public méthode

public GetStringAsUtf8 ( ) : string
Résultat string

GetStringAsUtf8() public méthode

public GetStringAsUtf8 ( int readIndex ) : string
readIndex int
Résultat string

GetUInt16() public méthode

public GetUInt16 ( ) : ushort
Résultat ushort

GetUInt16() public static méthode

public static GetUInt16 ( StreamBuffer source, int readIndex ) : ushort
source StreamBuffer
readIndex int
Résultat ushort

GetUInt16() public méthode

public GetUInt16 ( int readIndex ) : ushort
readIndex int
Résultat ushort

GetUInt32() public méthode

public GetUInt32 ( ) : uint
Résultat uint

GetUInt32() public static méthode

public static GetUInt32 ( StreamBuffer source, int readIndex ) : uint
source StreamBuffer
readIndex int
Résultat uint

GetUInt32() public méthode

public GetUInt32 ( int readIndex ) : uint
readIndex int
Résultat uint

GetUInt64() public méthode

public GetUInt64 ( ) : ulong
Résultat ulong

GetUInt64() public static méthode

public static GetUInt64 ( StreamBuffer source, int readIndex ) : ulong
source StreamBuffer
readIndex int
Résultat ulong

GetUInt64() public méthode

public GetUInt64 ( int readIndex ) : ulong
readIndex int
Résultat ulong

OnWritten() protected méthode

protected OnWritten ( ) : void
Résultat void

Overwrite() public méthode

public Overwrite ( byte source, int writeIndex ) : void
source byte
writeIndex int
Résultat void

Overwrite() public méthode

public Overwrite ( byte source, int index, int size, int writeIndex ) : void
source byte
index int
size int
writeIndex int
Résultat void

Overwrite() public méthode

public Overwrite ( char source, int writeIndex ) : void
source char
writeIndex int
Résultat void

OverwriteBoolean() public méthode

public OverwriteBoolean ( int writeIndex, bool var ) : void
writeIndex int
var bool
Résultat void

OverwriteByte() public méthode

public OverwriteByte ( int writeIndex, byte var ) : void
writeIndex int
var byte
Résultat void

OverwriteChar() public méthode

public OverwriteChar ( int writeIndex, char var ) : void
writeIndex int
var char
Résultat void

OverwriteDouble() public méthode

public OverwriteDouble ( int writeIndex, double var ) : void
writeIndex int
var double
Résultat void

OverwriteInt16() public méthode

public OverwriteInt16 ( int writeIndex, short var ) : void
writeIndex int
var short
Résultat void

OverwriteInt32() public méthode

public OverwriteInt32 ( int writeIndex, int var ) : void
writeIndex int
var int
Résultat void

OverwriteInt64() public méthode

public OverwriteInt64 ( int writeIndex, long var ) : void
writeIndex int
var long
Résultat void

OverwriteSByte() public méthode

public OverwriteSByte ( int writeIndex, sbyte var ) : void
writeIndex int
var sbyte
Résultat void

OverwriteUInt16() public méthode

public OverwriteUInt16 ( int writeIndex, ushort var ) : void
writeIndex int
var ushort
Résultat void

OverwriteUInt32() public méthode

public OverwriteUInt32 ( int writeIndex, uint var ) : void
writeIndex int
var uint
Résultat void

OverwriteUInt64() public méthode

public OverwriteUInt64 ( int writeIndex, ulong var ) : void
writeIndex int
var ulong
Résultat void

PopReadBuffer() public méthode

public PopReadBuffer ( ) : void
Résultat void

PutBoolean() public méthode

public PutBoolean ( bool var ) : int
var bool
Résultat int

PutByte() public méthode

public PutByte ( byte var ) : int
var byte
Résultat int

PutChar() public méthode

public PutChar ( char var ) : int
var char
Résultat int

PutDouble() public méthode

public PutDouble ( double var ) : int
var double
Résultat int

PutInt16() public méthode

public PutInt16 ( short var ) : int
var short
Résultat int

PutInt32() public méthode

public PutInt32 ( int var ) : int
var int
Résultat int

PutInt64() public méthode

public PutInt64 ( long var ) : int
var long
Résultat int

PutSByte() public méthode

public PutSByte ( sbyte var ) : int
var sbyte
Résultat int

PutStringAsUtf16() public méthode

public PutStringAsUtf16 ( string var ) : int
var string
Résultat int

PutStringAsUtf8() public méthode

public PutStringAsUtf8 ( string var ) : int
var string
Résultat int

PutUInt16() public méthode

public PutUInt16 ( ushort var ) : int
var ushort
Résultat int

PutUInt32() public méthode

public PutUInt32 ( uint var ) : int
var uint
Résultat int

PutUInt64() public méthode

public PutUInt64 ( ulong var ) : int
var ulong
Résultat int

Read() public méthode

public Read ( ) : byte
Résultat byte

Read() public méthode

public Read ( byte destination ) : void
destination byte
Résultat void

Read() public méthode

public Read ( byte destination, int destinationIndex ) : void
destination byte
destinationIndex int
Résultat void

Read() public méthode

public Read ( byte destination, int destinationIndex, int length ) : void
destination byte
destinationIndex int
length int
Résultat void

Read() public méthode

public Read ( int size ) : void
size int
Résultat void

ResetReadIndex() public méthode

public ResetReadIndex ( ) : void
Résultat void

ResetWriteIndex() public méthode

public ResetWriteIndex ( ) : void
Résultat void

Resize() public méthode

public Resize ( int size ) : void
size int
Résultat void

StreamBuffer() public méthode

public StreamBuffer ( ) : System
Résultat System

StreamBuffer() public méthode

public StreamBuffer ( StreamBuffer source ) : System
source StreamBuffer
Résultat System

StreamBuffer() public méthode

public StreamBuffer ( StreamBuffer source, int index, int size ) : System
source StreamBuffer
index int
size int
Résultat System

StreamBuffer() public méthode

public StreamBuffer ( byte source ) : System
source byte
Résultat System

StreamBuffer() public méthode

public StreamBuffer ( byte source, int index, int size ) : System
source byte
index int
size int
Résultat System

StreamBuffer() public méthode

public StreamBuffer ( int size ) : System
size int
Résultat System

Write() public méthode

public Write ( StreamBuffer source ) : void
source StreamBuffer
Résultat void

Write() public méthode

public Write ( StreamBuffer source, int sourceIndex ) : void
source StreamBuffer
sourceIndex int
Résultat void

Write() public méthode

public Write ( StreamBuffer source, int sourceIndex, int length ) : void
source StreamBuffer
sourceIndex int
length int
Résultat void

Write() public méthode

public Write ( byte source ) : void
source byte
Résultat void

Write() public méthode

public Write ( byte source, int sourceIndex ) : void
source byte
sourceIndex int
Résultat void

Write() public méthode

public Write ( byte source, int sourceIndex, int length ) : void
source byte
sourceIndex int
length int
Résultat void

Write() public méthode

public Write ( char source ) : void
source char
Résultat void

Write() public méthode

public Write ( int size ) : void
size int
Résultat void

WriteWithParams() public méthode

public WriteWithParams ( ) : void
Résultat void