Esempio n. 1
0
 public override int[] Init()
 {
     return(bytesStart = new int[ArrayUtil.Oversize(m_initSize, RamUsageEstimator.NUM_BYTES_INT32)]);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a <seealso cref="GrowableByteArrayDataOutput"/> with the given initial capacity. </summary>
 public GrowableByteArrayDataOutput(int cp)
 {
     this.Bytes  = new byte[ArrayUtil.Oversize(cp, 1)];
     this.Length = 0;
 }