Package com.foundationdb.tuple.TupleUtil

Examples of com.foundationdb.tuple.TupleUtil.DecodeResult


    static List<Object> unpack(byte[] bytes, int start, int length) {
        List<Object> items = new LinkedList<Object>();
        int pos = start;
        int end = start + length;
        while(pos < bytes.length) {
            DecodeResult decoded = decode(bytes, pos, end);
            items.add(decoded.o);
            pos = decoded.end;
        }
        return items;
    }
View Full Code Here


        }
        if (code == DOUBLE_CODE) {
            return decodeDouble(rep, start);
        }
        if (code == TRUE_CODE) {
            return new DecodeResult(start, true);
        }
        if (code == FALSE_CODE) {
            return new DecodeResult(start, false);
        }
        if (code == BIGDEC_POS_CODE || code == BIGDEC_NEG_CODE) {
            return decodeBigDecimal(rep, start);
        }
        if (code == BIGINT_POS_CODE || code == BIGINT_NEG_CODE) {
View Full Code Here

TOP

Related Classes of com.foundationdb.tuple.TupleUtil.DecodeResult

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.