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> addMapKey(K key) { return write(codec.encodeMapKey(key)); }