C# 클래스 OpenStory.Common.IO.PacketBuilder

Represents a class for constructing game packets.
This class exclusively uses little-endian byte order.
상속: IPacketBuilder, IDisposable
파일 보기 프로젝트 열기: shoftee/OpenStory 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void Calling instance methods after calling this will cause them to throw an ObjectDisposedException.
PacketBuilder ( ) : System

Initializes a new instance of the PacketBuilder class with the default capacity.

ToByteArray ( ) : byte[]

Gets a copy of the internal byte buffer of the PacketBuilder.

WriteBoolean ( bool boolean ) : void
WriteByte ( byte number ) : void
WriteByte ( int number ) : void
WriteBytes ( byte bytes ) : void
WriteInt16 ( int number ) : void
WriteInt16 ( short number ) : void
WriteInt16 ( uint number ) : void
WriteInt16 ( ushort number ) : void
WriteInt32 ( int number ) : void
WriteInt32 ( uint number ) : void
WriteInt64 ( long number ) : void
WriteInt64 ( ulong number ) : void
WriteLengthString ( string @string ) : void
WritePaddedString ( string @string, int paddingLength ) : void
WriteZeroes ( int count ) : void

비공개 메소드들

메소드 설명
ThrowIfDisposed ( ) : void

Throws a new ObjectDisposedException if the current object is disposed.

WriteDirect ( byte bytes ) : void

메소드 상세

Dispose() 공개 메소드

Calling instance methods after calling this will cause them to throw an ObjectDisposedException.
public Dispose ( ) : void
리턴 void

PacketBuilder() 공개 메소드

Initializes a new instance of the PacketBuilder class with the default capacity.
public PacketBuilder ( ) : System
리턴 System

ToByteArray() 공개 메소드

Gets a copy of the internal byte buffer of the PacketBuilder.
public ToByteArray ( ) : byte[]
리턴 byte[]

WriteBoolean() 공개 메소드

public WriteBoolean ( bool boolean ) : void
boolean bool
리턴 void

WriteByte() 공개 메소드

public WriteByte ( byte number ) : void
number byte
리턴 void

WriteByte() 공개 메소드

public WriteByte ( int number ) : void
number int
리턴 void

WriteBytes() 공개 메소드

public WriteBytes ( byte bytes ) : void
bytes byte
리턴 void

WriteInt16() 공개 메소드

public WriteInt16 ( int number ) : void
number int
리턴 void

WriteInt16() 공개 메소드

public WriteInt16 ( short number ) : void
number short
리턴 void

WriteInt16() 공개 메소드

public WriteInt16 ( uint number ) : void
number uint
리턴 void

WriteInt16() 공개 메소드

public WriteInt16 ( ushort number ) : void
number ushort
리턴 void

WriteInt32() 공개 메소드

public WriteInt32 ( int number ) : void
number int
리턴 void

WriteInt32() 공개 메소드

public WriteInt32 ( uint number ) : void
number uint
리턴 void

WriteInt64() 공개 메소드

public WriteInt64 ( long number ) : void
number long
리턴 void

WriteInt64() 공개 메소드

public WriteInt64 ( ulong number ) : void
number ulong
리턴 void

WriteLengthString() 공개 메소드

public WriteLengthString ( string @string ) : void
@string string
리턴 void

WritePaddedString() 공개 메소드

public WritePaddedString ( string @string, int paddingLength ) : void
@string string
paddingLength int
리턴 void

WriteZeroes() 공개 메소드

public WriteZeroes ( int count ) : void
count int
리턴 void