MCPcopy Create free account
hub / github.com/hashintel/hash / require

Function require

libs/@local/harpc/client/typescript/src/binary/MutableBytes.ts:145–153  ·  view source on GitHub ↗
(self: MutableBytes, byteLength: number)

Source from the content-addressed store, hash-verified

143};
144
145export const require = (self: MutableBytes, byteLength: number) => {
146 allocate(self, requiredCapacity(self, byteLength));
147
148 const impl = self as MutableBytesImpl;
149
150 impl.length = byteLength;
151
152 return self;
153};
154
155export const asBuffer = (self: MutableBytes) => {
156 const impl = self as MutableBytesImpl;

Callers 6

yarn.config.cjsFile · 0.85
_app.page.tsxFile · 0.85
.eslintrc.cjsFile · 0.85
.eslintrc.cjsFile · 0.85
postcss.config.cjsFile · 0.85

Calls 2

allocateFunction · 0.85
requiredCapacityFunction · 0.85

Tested by

no test coverage detected