C# Class LiteNetLib.Utils.NetDataWriter

Show file Open project: RevenantX/LiteNetLib Class Usage Examples

Protected Properties

Property Type Description
_autoResize bool
_data byte[]
_maxLength int
_position int

Public Methods

Method Description
CopyData ( ) : byte[]
NetDataWriter ( ) : System
NetDataWriter ( bool autoResize ) : System
NetDataWriter ( bool autoResize, int initialSize ) : System
Put ( NetEndPoint endPoint ) : void
Put ( bool value ) : void
Put ( byte value ) : void
Put ( byte data, int offset, int length ) : void
Put ( double value ) : void
Put ( float value ) : void
Put ( int value ) : void
Put ( long value ) : void
Put ( sbyte value ) : void
Put ( short value ) : void
Put ( string value ) : void
Put ( string value, int maxLength ) : void
Put ( uint value ) : void
Put ( ulong value ) : void
Put ( ushort value ) : void
Reset ( ) : void
Reset ( int size ) : void
ResizeIfNeed ( int newSize ) : void

Method Details

CopyData() public method

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

NetDataWriter() public method

public NetDataWriter ( ) : System
return System

NetDataWriter() public method

public NetDataWriter ( bool autoResize ) : System
autoResize bool
return System

NetDataWriter() public method

public NetDataWriter ( bool autoResize, int initialSize ) : System
autoResize bool
initialSize int
return System

Put() public method

public Put ( NetEndPoint endPoint ) : void
endPoint NetEndPoint
return void

Put() public method

public Put ( bool value ) : void
value bool
return void

Put() public method

public Put ( byte value ) : void
value byte
return void

Put() public method

public Put ( byte data, int offset, int length ) : void
data byte
offset int
length int
return void

Put() public method

public Put ( double value ) : void
value double
return void

Put() public method

public Put ( float value ) : void
value float
return void

Put() public method

public Put ( int value ) : void
value int
return void

Put() public method

public Put ( long value ) : void
value long
return void

Put() public method

public Put ( sbyte value ) : void
value sbyte
return void

Put() public method

public Put ( short value ) : void
value short
return void

Put() public method

public Put ( string value ) : void
value string
return void

Put() public method

public Put ( string value, int maxLength ) : void
value string
maxLength int
return void

Put() public method

public Put ( uint value ) : void
value uint
return void

Put() public method

public Put ( ulong value ) : void
value ulong
return void

Put() public method

public Put ( ushort value ) : void
value ushort
return void

Reset() public method

public Reset ( ) : void
return void

Reset() public method

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

ResizeIfNeed() public method

public ResizeIfNeed ( int newSize ) : void
newSize int
return void

Property Details

_autoResize protected property

protected bool _autoResize
return bool

_data protected property

protected byte[] _data
return byte[]

_maxLength protected property

protected int _maxLength
return int

_position protected property

protected int _position
return int