A buffer can be described by following properties:
limit - 1
. Accessing elements out of the scope will cause exception. Limit is no less than zero and no greater than capacity.ReadOnlyBufferException
, while changing the position, limit and mark of a readonly buffer is OK.Buffers are not thread-safe. If concurrent access to a buffer instance is required, then the callers are responsible to take care of the synchronization issues.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|