theData.appendBytes(longToByteArray2(theTopObject, 8)); // _topObject appears to be set to 0 in CF
theData.appendBytes(longToByteArray2(offsetTableStart, 8)); // _offsetTableOffset
// write to stream
try {
theData.writeToStream(out);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Failed to write binary property list ", e);
}
}