protected long getContentSize() { if (zeroTerm) { return 25 + Utf8.utf8StringLengthInBytes(name); } else { return 24 + Utf8.utf8StringLengthInBytes(name); } }
public int getSize() { return 3 + Utf8.utf8StringLengthInBytes(namespace) + Utf8.utf8StringLengthInBytes(profileLevelIdc) + Utf8.utf8StringLengthInBytes(assetId); } }
@Override protected long getContentSize() { return Utf8.utf8StringLengthInBytes(config); }
@Override protected long getContentSize() { return 22 + Utf8.utf8StringLengthInBytes(schemeIdUri) + Utf8.utf8StringLengthInBytes(value) + messageData.length; }
@Override protected long getContentSize() { return 4 + Utf8.utf8StringLengthInBytes(coords); }
protected long getContentSize() { long contentSize = 7; for (String keyword : keywords) { contentSize += 1 + Utf8.utf8StringLengthInBytes(keyword) + 1; } return contentSize; }
protected long getContentSize() { return 6 + Utf8.utf8StringLengthInBytes(performer) + 1; }
protected long getContentSize() { return Utf8.utf8StringLengthInBytes(name) + 1 + Utf8.utf8StringLengthInBytes(location) + 1; }
protected long getContentSize() { return 6 + Utf8.utf8StringLengthInBytes(albumTitle) + 1 + (trackNumber == -1 ? 0 : 1); }
@Override protected long getContentSize() { return Utf8.utf8StringLengthInBytes(sourceLabel); }
@Override protected long getContentSize() { return 4 + Utf8.utf8StringLengthInBytes(xml); }
@Override protected long getContentSize() { return Utf8.utf8StringLengthInBytes(apid) + 9; }
protected long getContentSize() { return 4 + 2 + 2 + Utf8.utf8StringLengthInBytes(classificationInfo) + 1; }
protected long getContentSize() { return 15 + Utf8.utf8StringLengthInBytes(ratingInfo); }
protected long getContentSize() { return 7 + Utf8.utf8StringLengthInBytes(genre); }
protected long getContentSize() { return 7 + Utf8.utf8StringLengthInBytes(title); }
protected long getContentSize() { return 12 + (((getFlags() & 1) == 1) ? Utf8.utf8StringLengthInBytes(schemeUri) + 1 : 0); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); byteBuffer.put(Utf8.convert(baseLocation)); byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation)]); // string plus term zero byteBuffer.put(Utf8.convert(purchaseLocation)); byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation)]); // string plus term zero byteBuffer.put(new byte[512]); }
@Override public void _parseDetails(ByteBuffer content) { parseVersionAndFlags(content); baseLocation = IsoTypeReader.readString(content); content.get(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation) - 1]); purchaseLocation = IsoTypeReader.readString(content); content.get(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation) - 1]); content.get(new byte[512]); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeIso639(byteBuffer, language); IsoTypeWriter.writeUInt8(byteBuffer, keywords.length); for (String keyword : keywords) { IsoTypeWriter.writeUInt8(byteBuffer, Utf8.utf8StringLengthInBytes(keyword) + 1); byteBuffer.put(Utf8.convert(keyword)); } }