MCPcopy
hub / github.com/diegomura/react-pdf / probe

Method probe

packages/fontkit/src/TrueTypeCollection.js:21–23  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

19
20export default class TrueTypeCollection {
21 static probe(buffer) {
22 return buffer.toString('ascii', 0, 4) === 'ttcf';
23 }
24
25 constructor(stream) {
26 this.stream = stream;

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected