C# Class NetBuffer, UnityFramework

Inheritance: IDisposable
ファイルを表示 Open project: meta-42/uEasyKit Class Usage Examples

Public Properties

Property Type Description
stream MemoryStream

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
Flush ( ) : void
GetLength ( ) : int
NetBuffer ( ) : System
NetBuffer ( byte data ) : System
Read ( int index, int count ) : byte[]
ReadByte ( ) : int

1字节读出

ReadBytes ( ) : byte[]
ReadDouble ( ) : double

8字节读出

ReadFloat ( ) : float

4字节读出

ReadInt ( ) : int

4字节读出

ReadLong ( ) : long

8字节读出

ReadMessage ( ) : string
ReadRemaining ( ) : byte[]
ReadShort ( ) : ushort

2字节读出

ReadString ( int len ) : string
ResetPosition ( ) : void
ToBytes ( ) : byte[]
ToString ( ) : string
WriteByte ( int v ) : void

1字节写入

WriteBytes ( byte v ) : void
WriteDouble ( double v ) : void

8字节写入

WriteFloat ( float v ) : void

4字节写入

WriteInt ( int v ) : void

4字节写入

WriteLong ( long v ) : void

8字节写入

WriteMessage ( string v ) : void
WriteShort ( ushort v ) : void

2字节写入

WriteString ( string v ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

GetLength() public method

public GetLength ( ) : int
return int

NetBuffer() public method

public NetBuffer ( ) : System
return System

NetBuffer() public method

public NetBuffer ( byte data ) : System
data byte
return System

Read() public method

public Read ( int index, int count ) : byte[]
index int
count int
return byte[]

ReadByte() public method

1字节读出
public ReadByte ( ) : int
return int

ReadBytes() public method

public ReadBytes ( ) : byte[]
return byte[]

ReadDouble() public method

8字节读出
public ReadDouble ( ) : double
return double

ReadFloat() public method

4字节读出
public ReadFloat ( ) : float
return float

ReadInt() public method

4字节读出
public ReadInt ( ) : int
return int

ReadLong() public method

8字节读出
public ReadLong ( ) : long
return long

ReadMessage() public method

public ReadMessage ( ) : string
return string

ReadRemaining() public method

public ReadRemaining ( ) : byte[]
return byte[]

ReadShort() public method

2字节读出
public ReadShort ( ) : ushort
return ushort

ReadString() public method

public ReadString ( int len ) : string
len int
return string

ResetPosition() public method

public ResetPosition ( ) : void
return void

ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]

ToString() public method

public ToString ( ) : string
return string

WriteByte() public method

1字节写入
public WriteByte ( int v ) : void
v int
return void

WriteBytes() public method

public WriteBytes ( byte v ) : void
v byte
return void

WriteDouble() public method

8字节写入
public WriteDouble ( double v ) : void
v double
return void

WriteFloat() public method

4字节写入
public WriteFloat ( float v ) : void
v float
return void

WriteInt() public method

4字节写入
public WriteInt ( int v ) : void
v int
return void

WriteLong() public method

8字节写入
public WriteLong ( long v ) : void
v long
return void

WriteMessage() public method

public WriteMessage ( string v ) : void
v string
return void

WriteShort() public method

2字节写入
public WriteShort ( ushort v ) : void
v ushort
return void

WriteString() public method

public WriteString ( string v ) : void
v string
return void

Property Details

stream public_oe property

public MemoryStream stream
return MemoryStream