Add a segment to the buffer list. @param buf byte array @param offset offset into buf @param len length of segment, starting at offset
(final byte[] buf, final int offset, final int len)
| 54 | * @param len length of segment, starting at offset |
| 55 | */ |
| 56 | public void add(final byte[] buf, final int offset, final int len) { |
| 57 | segments.add(new BufferSegment(buf, offset, len)); |
| 58 | total_length += len; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Get the most recently added segment. |
no outgoing calls
no test coverage detected