ByteBuffer (final ByteBuffer buffer, final int attributeId, final byte[] newValueBytes, final int newValueSize) { assert buffer.remaining() >= entrySizeForInlineValueSize(attributeId, newValueSize) : "buffer(pos:" + buffer.position() + ", lim:" + buffer.limit() + ") " + "is too small for inline attribute " + newValueSize + " (+8b header)"; putInlineEntryHeader(buffer, attributeId, newValueSize); return putInlineEntryValue(buffer, newValueBytes, newValueSize); }