put method

void put(
  1. LByteBuffer buffer
)

Put a buffer into this buffer, considering the current position and remaining bytes.

Implementation

void put(LByteBuffer buffer) {
  var rem = buffer.remaining;
  _data.setRange(_position, _position + rem, buffer._data, buffer._position);
  _position = _position + rem;
}