C# Class OctoTorrent.Client.Messages.Message

Inheritance: IMessage
Afficher le fichier Open project: Eskat0n/OctoTorrent Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CheckWritten ( int written ) : int

Method Details

CheckWritten() protected méthode

protected CheckWritten ( int written ) : int
written int
Résultat int

Decode() public abstract méthode

public abstract Decode ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
Résultat void

Encode() public méthode

public Encode ( ) : byte[]
Résultat byte[]

Encode() public abstract méthode

public abstract Encode ( byte buffer, int offset ) : int
buffer byte
offset int
Résultat int

ReadByte() public static méthode

public static ReadByte ( byte buffer, int offset ) : byte
buffer byte
offset int
Résultat byte

ReadBytes() public static méthode

public static ReadBytes ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
Résultat byte[]

ReadInt() public static méthode

public static ReadInt ( byte buffer, int offset ) : int
buffer byte
offset int
Résultat int

ReadLong() public static méthode

public static ReadLong ( byte buffer, int offset ) : long
buffer byte
offset int
Résultat long

ReadShort() public static méthode

public static ReadShort ( byte buffer, int offset ) : short
buffer byte
offset int
Résultat short

ReadString() public static méthode

public static ReadString ( byte buffer, int offset, int count ) : string
buffer byte
offset int
count int
Résultat string

Write() public static méthode

public static Write ( byte buffer, int offset, byte value ) : int
buffer byte
offset int
value byte
Résultat int

Write() public static méthode

public static Write ( byte dest, int destOffset, byte src, int srcOffset, int count ) : int
dest byte
destOffset int
src byte
srcOffset int
count int
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, int value ) : int
buffer byte
offset int
value int
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, long value ) : int
buffer byte
offset int
value long
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, short value ) : int
buffer byte
offset int
value short
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, uint value ) : int
buffer byte
offset int
value uint
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, ulong value ) : int
buffer byte
offset int
value ulong
Résultat int

Write() public static méthode

public static Write ( byte buffer, int offset, ushort value ) : int
buffer byte
offset int
value ushort
Résultat int

WriteAscii() public static méthode

public static WriteAscii ( byte buffer, int offset, string text ) : int
buffer byte
offset int
text string
Résultat int