MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / writeStringMap

Method writeStringMap

lib/writers.js:141–156  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

139 }
140
141 writeStringMap(map) {
142 const keys = [];
143 for (const k in map) {
144 if (map.hasOwnProperty(k)) {
145 keys.push(k);
146 }
147 }
148
149 this.writeShort(keys.length);
150
151 for(let i = 0; i < keys.length; i++) {
152 const key = keys[i];
153 this.writeString(key);
154 this.writeString(map[key]);
155 }
156 }
157
158 /**
159 * @param {Number} version

Callers 2

writeMethod · 0.95
writeMethod · 0.95

Calls 3

writeShortMethod · 0.95
writeStringMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected