Lines Matching refs:capacity
39 $assert.ASSERT (initialCapacity >= 0, "negative initial capacity: " + initialCapacity);
52 final int capacity = pos + 2;
56 if (mbuflen < capacity)
58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
70 m_pos = capacity;
76 final int capacity = pos + 3;
80 if (mbuflen < capacity)
82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
95 m_pos = capacity;
101 final int capacity = pos + 4;
105 if (mbuflen < capacity)
107 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
121 m_pos = capacity;
142 // // read at least 'available' bytes: extend the capacity as needed
154 // // extend the capacity to match 'chunk':
180 // final int capacity = pos + extraCapacity;
184 // if (mbuflen < capacity)
186 // final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
226 public final int capacity ()
232 * Does not reduce the current capacity.
244 final int capacity = pos + 1;
248 if (mbuflen < capacity)
250 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
261 m_pos = capacity;
273 final int capacity = pos + length;
277 if (mbuflen < capacity)
279 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
294 m_pos = capacity;