Example #1
0
        public BytePtr ReadBlock(int size)
        {
            if (Length < size)
            {
                throw new InvalidOperationException(String.Format("Quantidade insuficiente de dados no buffer ({0}). Esperado {1}, atual {2}.", nameof(ReadBlock), size, Length));
            }

            BytePtr ret = new BytePtr(Ptr, ReadPos, size);

            ReadPos += size;
            return(ret);
        }
Example #2
0
 protected virtual void OnDataReceived(BytePtr packetData)
 {
 }