Exemplo n.º 1
0
 public TBuilder Reserve(int capacity)
 {
     ValueOffsets.Reserve(capacity + 1);
     ValueBuffer.Reserve(capacity);
     ValidityBuffer.Reserve(capacity + 1);
     return(Instance);
 }
Exemplo n.º 2
0
 public TBuilder Reserve(int capacity)
 {
     // TODO: [ARROW-9366] Reserve capacity in the value buffer in a more sensible way.
     ValueOffsets.Reserve(capacity + 1);
     ValueBuffer.Reserve(capacity);
     ValidityBuffer.Reserve(capacity + 1);
     return(Instance);
 }
Exemplo n.º 3
0
            public Builder Reserve(int capacity)
            {
                if (capacity < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(capacity));
                }

                ValueBuffer.Reserve(BitUtility.ByteCount(capacity));
                ValidityBuffer.Reserve(BitUtility.ByteCount(capacity));
                return(this);
            }