C# Class MineViewer.PacketHandler

显示文件 Open project: dzamkov/MineViewer Class Usage Examples

Public Properties

Property Type Description
Buffer byte[]

Public Methods

Method Description
Flush ( ) : void

Send the shit down the toilet

PacketHandler ( BinaryWriter _Writer ) : System
SetOperationCode ( SMPInterface OpCode ) : void

Set the operation code (0x01 etc...)

Write ( bool Value ) : void

Write a bool to the buffer

Write ( byte Value ) : void

Write a byte to the buffer

Write ( double Value ) : void

Write a double to the buffer

Write ( float Value ) : void

Write a float to the buffer

Write ( int Value ) : void

Write an integer to the buffer

Write ( long Value ) : void

Write a long to the buffer

Write ( short Value ) : void

Write a short to the buffer

Write ( string Value ) : void

Write a string to the buffer

_Write ( byte Values ) : void

Private write to the buffer, suggested by c0bra

Method Details

Flush() public method

Send the shit down the toilet
public Flush ( ) : void
return void

PacketHandler() public method

public PacketHandler ( BinaryWriter _Writer ) : System
_Writer System.IO.BinaryWriter
return System

SetOperationCode() public method

Set the operation code (0x01 etc...)
public SetOperationCode ( SMPInterface OpCode ) : void
OpCode SMPInterface
return void

Write() public method

Write a bool to the buffer
public Write ( bool Value ) : void
Value bool
return void

Write() public method

Write a byte to the buffer
public Write ( byte Value ) : void
Value byte
return void

Write() public method

Write a double to the buffer
public Write ( double Value ) : void
Value double
return void

Write() public method

Write a float to the buffer
public Write ( float Value ) : void
Value float
return void

Write() public method

Write an integer to the buffer
public Write ( int Value ) : void
Value int
return void

Write() public method

Write a long to the buffer
public Write ( long Value ) : void
Value long
return void

Write() public method

Write a short to the buffer
public Write ( short Value ) : void
Value short
return void

Write() public method

Write a string to the buffer
public Write ( string Value ) : void
Value string
return void

_Write() public method

Private write to the buffer, suggested by c0bra
public _Write ( byte Values ) : void
Values byte
return void

Property Details

Buffer public_oe property

public byte[] Buffer
return byte[]