Exemple #1
0
        // Get the data of a vector whoses offset is stored at "offset" in this object as an
        // ArraySegment<byte>. If the vector is not present in the ByteBuffer,
        // then a null value will be returned.
        public ArraySegment <byte>?__vector_as_arraysegment(int offset)
        {
            var o = this.__offset(offset);

            if (0 == o)
            {
                return(null);
            }

            var pos = this.__vector(o);
            var len = this.__vector_len(o);

            return(bb.ToArraySegment(pos, len));
        }