示例#1
0
 public TBuilder Resize(int length)
 {
     ValueOffsets.Resize(length + 1);
     ValueBuffer.Resize(length);
     ValidityBuffer.Resize(length + 1);
     return(Instance);
 }
示例#2
0
 public TBuilder Resize(int length)
 {
     // TODO: [ARROW-9366] Resize the value buffer to a safe length based on offsets, not `length`.
     ValueOffsets.Resize(length + 1);
     ValueBuffer.Resize(length);
     ValidityBuffer.Resize(length + 1);
     return(Instance);
 }
示例#3
0
            public Builder Resize(int length)
            {
                if (length < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(length));
                }

                ValueBuffer.Resize(BitUtility.ByteCount(length));
                ValidityBuffer.Resize(BitUtility.ByteCount(length));
                Length = length;
                return(this);
            }