}
public static CodableStatistics encodeStatistics(Object object) throws Exception {
BufferOut buf = new BufferOut();
Bytes.writeInt(CODEC_VERSION, buf.out());
CodableStatistics statistics = new CodableStatistics();
INSTANCE.encodeObject(object, buf, statistics);
statistics.setTotalSize(buf.out.size());
statistics.export();
return statistics;
}