public void Write(byte[] buffer, int offset, int count)
        {
            formatter.Header();

            for (var i = 0; i < count; i++)
            {
                formatter.AddByte(buffer[offset + i]);
            }
        }
        public int ReadByte()
        {
            var value = BaseStream.ReadByte();

            if ((value >= byte.MinValue) && (value <= byte.MaxValue))
            {
                formatter.AddByte((byte)value);
            }

            return(value);
        }