C# Class Universal.Torrent.Client.Messages.Message

Inheritance: IMessage
Mostrar archivo Open project: haroldma/Universal.Torrent

Public Methods

Method Description
Decode ( byte buffer, int offset, int length ) : void
Encode ( ) : byte[]
Encode ( byte buffer, int offset ) : int
ReadByte ( byte buffer, int offset ) : byte
ReadBytes ( byte buffer, int offset, int count ) : byte[]
ReadInt ( byte buffer, int offset ) : int
ReadLong ( byte buffer, int offset ) : long
ReadShort ( byte buffer, int offset ) : short
ReadString ( byte buffer, int offset, int count ) : string
Write ( byte buffer, int offset, byte value ) : int
Write ( byte dest, int destOffset, byte src, int srcOffset, int count ) : int
Write ( byte buffer, int offset, int value ) : int
Write ( byte buffer, int offset, long value ) : int
Write ( byte buffer, int offset, short value ) : int
Write ( byte buffer, int offset, uint value ) : int
Write ( byte buffer, int offset, ulong value ) : int
Write ( byte buffer, int offset, ushort value ) : int
WriteAscii ( byte buffer, int offset, string text ) : int

Protected Methods

Method Description
CheckWritten ( int written ) : int

Method Details

CheckWritten() protected method

protected CheckWritten ( int written ) : int
written int
return int

Decode() public abstract method

public abstract Decode ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

Encode() public method

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

Encode() public abstract method

public abstract Encode ( byte buffer, int offset ) : int
buffer byte
offset int
return int

ReadByte() public static method

public static ReadByte ( byte buffer, int offset ) : byte
buffer byte
offset int
return byte

ReadBytes() public static method

public static ReadBytes ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
return byte[]

ReadInt() public static method

public static ReadInt ( byte buffer, int offset ) : int
buffer byte
offset int
return int

ReadLong() public static method

public static ReadLong ( byte buffer, int offset ) : long
buffer byte
offset int
return long

ReadShort() public static method

public static ReadShort ( byte buffer, int offset ) : short
buffer byte
offset int
return short

ReadString() public static method

public static ReadString ( byte buffer, int offset, int count ) : string
buffer byte
offset int
count int
return string

Write() public static method

public static Write ( byte buffer, int offset, byte value ) : int
buffer byte
offset int
value byte
return int

Write() public static method

public static Write ( byte dest, int destOffset, byte src, int srcOffset, int count ) : int
dest byte
destOffset int
src byte
srcOffset int
count int
return int

Write() public static method

public static Write ( byte buffer, int offset, int value ) : int
buffer byte
offset int
value int
return int

Write() public static method

public static Write ( byte buffer, int offset, long value ) : int
buffer byte
offset int
value long
return int

Write() public static method

public static Write ( byte buffer, int offset, short value ) : int
buffer byte
offset int
value short
return int

Write() public static method

public static Write ( byte buffer, int offset, uint value ) : int
buffer byte
offset int
value uint
return int

Write() public static method

public static Write ( byte buffer, int offset, ulong value ) : int
buffer byte
offset int
value ulong
return int

Write() public static method

public static Write ( byte buffer, int offset, ushort value ) : int
buffer byte
offset int
value ushort
return int

WriteAscii() public static method

public static WriteAscii ( byte buffer, int offset, string text ) : int
buffer byte
offset int
text string
return int