Exemple #1
0
        private unsafe BlittableJsonReaderObject GetReaderFromMemoryStream(MemoryStream ms, JsonOperationContext context)
        {
            var buffer = ms.GetBuffer();

            fixed(byte *ptr = buffer)
            {
                ms.Position = 0;
                return(context.ReadForDisk(ms, string.Empty));
            }
        }