MCPcopy
hub / github.com/mongodb/node-mongodb-native / utf8Slice

Function utf8Slice

test/unit/cmap/commands.test.ts:9–11  ·  view source on GitHub ↗
(buffer: Uint8Array, start: number, end: number)

Source from the content-addressed store, hash-verified

7
8// Helper to decode UTF-8 string from Uint8Array
9function utf8Slice(buffer: Uint8Array, start: number, end: number): string {
10 return BSON.ByteUtils.toUTF8(buffer, start, end, false);
11}
12
13describe('commands', function () {
14 describe('OpMsgRequest', function () {

Callers 1

commands.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected