* data 0100 nnnn [int] ... // nnnn is number of bytes unless 1111 then int count follows, followed by bytes
*/
private byte[] encodeData(byte[] theData) {
NSMutableData data = new NSMutableData(theData.length + 8);
data.appendBytes(encodeCount(theData.length, Type.kCFBinaryPlistMarkerData));
data.appendBytes(theData);
return data.bytes();
}
}