3839404142434445464748
} return map; } private Map decodeFixedLength(long length) throws CborException { Map map = new Map(); for (long i = 0; i < length; i++) { map.put(decoder.decodeNext(), decoder.decodeNext()); } return map; }
103104105106107108109110111
add(array); return new ArrayBuilder<CborBuilder>(this, array); } public MapBuilder<CborBuilder> addMap() { Map map = new Map(); add(map); return new MapBuilder<CborBuilder>(this, map); }
109110111112113114115116117118
add(map); return new MapBuilder<CborBuilder>(this, map); } public MapBuilder<CborBuilder> startMap() { Map map = new Map(); map.setChunked(true); add(map); return new MapBuilder<CborBuilder>(this, map); }
979899100101102103104105
put(convert(key), array); return new ArrayBuilder<>(this, array); } public MapBuilder<MapBuilder<T>> putMap(long key) { Map nestedMap = new Map(); put(convert(key), nestedMap); return new MapBuilder<>(this, nestedMap); }
626364656667686970
add(nestedArray); return new ArrayBuilder<ArrayBuilder<T>>(this, nestedArray); } public MapBuilder<ArrayBuilder<T>> addMap() { Map nestedMap = new Map(); add(nestedMap); return new MapBuilder<ArrayBuilder<T>>(this, nestedMap); }
68697071727374757677
add(nestedMap); return new MapBuilder<ArrayBuilder<T>>(this, nestedMap); } public MapBuilder<ArrayBuilder<T>> startMap() { Map nestedMap = new Map(); nestedMap.setChunked(true); add(nestedMap); return new MapBuilder<ArrayBuilder<T>>(this, nestedMap); }
232425262728293031323334353637383940
return decodeFixedLength(length); } } private Map decodeInfinitiveLength() throws CborException { Map map = new Map(); map.setChunked(true); if (decoder.isAutoDecodeInfinitiveMaps()) { for (;;) { DataItem key = decoder.decodeNext(); if (Special.BREAK.equals(key)) { break; } map.put(key, decoder.decodeNext()); } } return map; }
} return map; } private Map decodeFixedLength(long length) throws CborException { Map map = new Map((int) length); for (long i = 0; i < length; i++) { map.put(decoder.decodeNext(), decoder.decodeNext()); } return map; }