Encode() публичный Метод

public Encode ( byte buffer, int offset ) : int
buffer byte
offset int
Результат int
Пример #1
0
 public void PieceEncoding()
 {
     var message = new PieceMessage(15, 10, Piece.BlockSize)
                       {
                           Data = new byte[Piece.BlockSize]
                       };
     message.Encode(_buffer, Offset);
 }
Пример #2
0
 public void PieceEncoding()
 {
     PieceMessage message = new PieceMessage(15, 10, Piece.BlockSize);
     message.Data = new byte[Piece.BlockSize];
     message.Encode(buffer, offset);
 }