Home | History | Annotate | Download | only in telephony

Lines Matching refs:bb

87      * write the bb contents to sc
89 * @param bb is the ByteBuffer to write
93 public final int sendAll(ByteBuffer bb) throws IOException {
95 while (bb.remaining() != 0) {
96 count += mChannel.write(bb);
102 * read from sc until bb is filled then rewind bb
104 * @param bb is the ByteBuffer to fill
108 public final int recvAll(ByteBuffer bb) throws IOException {
110 while (bb.remaining() != 0) {
111 count += mChannel.read(bb);
117 * Rewind bb then write the contents to sc
119 * @param bb is the ByteBuffer to write
123 public final int rewindSendAll(ByteBuffer bb) throws IOException {
124 bb.rewind();
125 return sendAll(bb);
129 * read from sc until bb is filled then rewind bb
131 * @param bb is the ByteBuffer to fill
135 public final int recvAllRewind(ByteBuffer bb) throws IOException {
136 int count = recvAll(bb);
137 bb.rewind();