Searched refs:buff (Results 1 – 1 of 1) sorted by relevance
769 public ByteBuffer ExpandIf(ByteBuffer buff, int extra) { in ExpandIf() argument770 if (extra <= buff.remaining()) { in ExpandIf()771 return buff; in ExpandIf()773 ByteBuffer ret = ByteBuffer.allocate(buff.position() + extra); in ExpandIf()774 ret.order(buff.order()); in ExpandIf()775 ret.put(buff.array(), 0, buff.position()); in ExpandIf()