private void writeHeader() {
    os.write(DSCODE.PDX.toByte());
    lu = os.reserveLong(); // dummy length and type id
  }
Make sure we have room to add a VLF offset.
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxWriterImpl.java