MCPcopy
hub / github.com/mysqljs/mysql / packet

Function packet

test/unit/protocol/test-Parser.js:7–14  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

5var Parser = common.Parser;
6
7function packet(bytes) {
8 var buffer = Buffer.from(bytes);
9 var parser = new Parser();
10
11 parser.append(buffer);
12
13 return parser;
14}
15
16test('Parser', {
17 "parseBuffer: buffer won\'t change after appending another one": function() {

Callers 1

test-Parser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected