Пример #1
0
        public override byte[] ReadAsBytes()
        {
            if (currentSlice == null)
            {
                SetCurrentFromArray();
            }

            if (currentSlice == null)
            {
                return(null);
            }

            var value = currentSlice.ToBinary();

            SetToken(JsonToken.Bytes, value);
            currentSlice = null;
            return(value);
        }