The list of methods to do ByteBuffer Fill are organized into topic(s).
int
fill(ByteBuffer to, byte[] b, int off, int len) Like append, but does not throw BufferOverflowException
int pos = flipToFill(to);
try {
int remaining = to.remaining();
int take = remaining < len ? remaining : len;
to.put(b, off, take);
return take;
} finally {
flipToFlush(to, pos);
...
void
fillBufFromTime(ByteBuffer buf, Calendar cal) fill Buf From Time
buf.putChar((char) cal.get(Calendar.YEAR));
buf.put((byte) (cal.get(Calendar.MONTH) + 1));
buf.put((byte) cal.get(Calendar.DAY_OF_MONTH));
buf.put((byte) cal.get(Calendar.HOUR_OF_DAY));
buf.put((byte) cal.get(Calendar.MINUTE));
buf.put((byte) cal.get(Calendar.SECOND));
ByteBuffer
fillDdsBuffer(ByteBuffer buf) fill Dds Buffer
buf.rewind();
buf.putInt(ddsNumber);
buf.put((byte) (ddsAcknowledged ? 1 : 0));
buf.putInt(ddsDescription.length());
for (int i = 0; i < ddsDescription.length(); i++) {
buf.putChar(ddsDescription.charAt(i));
buf.putFloat(ddsPrecision);
...
ByteBuffer
fillHlaBuffer(ByteBuffer buf) fill Hla Buffer
String name = hlaName;
int messageLength = 1 + 4 + 4 + 2 * name.length();
if (messageLength > MAX_BUFFER_SIZE) {
int extraMessageLength = messageLength - MAX_BUFFER_SIZE;
name = name.substring(0, name.length() - (extraMessageLength / 2));
buf.rewind();
buf.put((byte) (hlaOk ? 1 : 0));
...