Пример #1
0
        public void Vector(Action <IFlexBufferVectorBuilder> vector)
        {
            var start   = _buffer.StartVector();
            var builder = new FlexBufferVectorBuilder(_buffer);

            vector(builder);
            _buffer.EndVector(start, false, false);
        }
Пример #2
0
        public void Vector(string key, Action <IFlexBufferVectorBuilder> vector)
        {
            _buffer.AddKey(key);
            var start   = _buffer.StartVector();
            var builder = new FlexBufferVectorBuilder(_buffer);

            vector(builder);
            _buffer.EndVector(start, false, false);
        }
Пример #3
0
        public static byte[] Vector(Action <IFlexBufferVectorBuilder> vector)
        {
            var buffer  = new FlexBuffer();
            var start   = buffer.StartVector();
            var builder = new FlexBufferVectorBuilder(buffer);

            vector(builder);
            buffer.EndVector(start, false, false);
            return(buffer.Finish());
        }