Package com.addthis.codec.util

Examples of com.addthis.codec.util.CodableStatistics


    }

    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;
    }
View Full Code Here


    }

    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;
    }
View Full Code Here

TOP

Related Classes of com.addthis.codec.util.CodableStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.