private int packChunkHeader(int allocatedCursor,
                                int committedCursor) {
      return packChunkHeader(chunkLength, hasNextChunkId, padding, allocatedCursor, committedCursor);
    }
private int packChunkHeader(int allocatedCursor,
                                int committedCursor)