// uint8_t _objectRefSize;
// uint64_t _numObjects;
// uint64_t _topObject;
// uint64_t _offsetTableOffset;
// } CFBinaryPlistTrailer;
theData.appendBytes(new byte[5]);
theData.appendByte((byte) 0x0); // _sortVersion which AFIK is not being used in CF
theData.appendByte((byte) intsize); // _offsetIntSize which byte size for all ints in file
theData.appendByte((byte) refsize); // _objectRefSize which is total # of objects value in bytes
theData.appendBytes(longToByteArray2(numberOfObjects, 8)); // _numObjects which is object count
theData.appendBytes(longToByteArray2(theTopObject, 8)); // _topObject appears to be set to 0 in CF