public CommandArgs<K, V> add(Map<K, V> map) { if (map.size() > 2) { realloc(buffer.capacity() + 16 * map.size()); } for (Map.Entry<K, V> entry : map.entrySet()) { write(codec.encodeMapKey(entry.getKey())); write(codec.encodeMapValue(entry.getValue())); } return this; }
public CommandArgs<K, V> addMapValue(V value) { return write(codec.encodeMapValue(value)); }