Esempio n. 1
0
        public override int Read(byte[] buffer, int offset, int count)
        {
            var bytesLeft = reader.Length - reader.CurrentPosition;

            if (bytesLeft < count)
            {
                count = bytesLeft;
            }

            reader.ReadByteArray(buffer, offset, count);

            return(count);
        }