MCPcopy Index your code
hub / github.com/brianc/node-postgres / cstring

Method cstring

packages/pg-protocol/src/buffer-reader.ts:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 public cstring(): string {
45 const start = this.offset
46 let end = start
47 // eslint-disable-next-line no-empty
48 while (this.buffer[end++]) {}
49 this.offset = end
50 return this.buffer.toString(this.encoding, start, end - 1)
51 }
52
53 public bytes(length: number): Buffer {
54 const result = this.buffer.slice(this.offset, this.offset + length)

Callers 7

parseNotificationMessageFunction · 0.80
parseFieldFunction · 0.80
parseErrorMessageFunction · 0.80
runFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected