* @param bytes Where the serialized data is to be saved.
* @param offset Location of the serialized data.
* @return Updated offset.
*/
public int save(byte[] bytes, int offset) throws Exception {
AppendableBytes appendableBytes = new AppendableBytes(bytes, offset);
save(appendableBytes);
return appendableBytes.getOffset();
}