default int writeToRecord(int recordId,
                            @NotNull ByteBufferWriter writer) throws IOException {
    return writeToRecord(recordId, writer, /*expectedRecordSizeHint: */ -1);
  }
default int writeToRecord(int recordId,
                            @NotNull ByteBufferWriter writer)