Example #1
0
 public void writeTo(ByteBuffer data) {
   data.putShort(type.getTypeValue());
   data.putShort(length);
   // Note missing PAD, see MINIMUM_LENGTH comment for details
 }