LiteNetLib.Utils.NetDataReader.GetBytes C# (CSharp) Method

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]
        public byte[] GetBytes()
        {
            byte[] outgoingData = new byte[AvailableBytes];
            Buffer.BlockCopy(_data, _position, outgoingData, 0, AvailableBytes);
            _position = _data.Length;
            return outgoingData;
        }

Same methods

NetDataReader::GetBytes ( byte destination ) : void
NetDataReader::GetBytes ( byte destination, int lenght ) : void