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

Method readString

lib/readers.js:144–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 }
143
144 readString() {
145 const length = this.readShort();
146 this.checkOffset(length);
147 const result = this.buf.toString('utf8', this.offset, this.offset + length);
148 this.offset += length;
149 return result;
150 }
151
152 /**
153 * Checks that the new length to read is within the range of the buffer length. Throws a RangeError if not.

Callers 8

readStringListMethod · 0.95
readStringMultiMapMethod · 0.95
readTypeMethod · 0.95
readMetadataMethod · 0.95
readErrorMethod · 0.95
readEventMethod · 0.95
parseSchemaChangeMethod · 0.95
streams.jsFile · 0.80

Calls 3

readShortMethod · 0.95
checkOffsetMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected