ByteBuffer (final ByteBuffer buffer, final int fileId, final int attributeId) { return buffer .putInt(-fileId) //negative fileId backref is a sign of dedicated attribute record .putInt(attributeId); }