The sliced buffer's capacity will be this buffer's remaining()
, and its zero position will correspond to this buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is unset. The new buffer's readonly property and byte order are same as this buffer.
The new buffer shares content with this buffer, which means either buffer's change of content will be visible to the other. The two buffer's position, limit and mark are independent.
@return A sliced buffer that shares content with this buffer.
|
|
|
|