Ejemplo n.º 1
0
        public static bool TryParse(MemoryCursor cursor, ExtensionType type, out MemoryBuffer buffer)
        {
            buffer = new MemoryBuffer();

            if (!ExtensionType.TrySlice(cursor, type))
            {
                return(false);
            }

            buffer = ExtensionLength.Slice(cursor);

            return(true);
        }