PeekDataBuffer() public method

Returns the internal data buffer, don't modify
public PeekDataBuffer ( ) : byte[]
return byte[]
Esempio n. 1
0
 public static NetIncomingMessage Decompress(NetIncomingMessage msg)
 {
     byte[] input = msg.PeekDataBuffer();
     byte[] output=new byte[msg.LengthBytes*10];
     int outlength = ZipCompressor.Instance.Decompress(input, msg.LengthBytes, output);
     return new NetIncomingMessage(output, outlength);
 }