MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / genericInstance

Function genericInstance

test/dotnet-parser-tests.ts:238–240  ·  view source on GitHub ↗
(kind: 'class' | 'valuetype', type: Buffer, args: Buffer[])

Source from the content-addressed store, hash-verified

236}
237
238function genericInstance(kind: 'class' | 'valuetype', type: Buffer, args: Buffer[]) {
239 return Buffer.concat([bytes(0x15, kind === 'class' ? 0x12 : 0x11), type, compressedUInt(args.length), ...args]);
240}
241
242function szArray(element: Buffer) {
243 return Buffer.concat([bytes(0x1d), element]);

Callers 1

ecma335FixtureFunction · 0.85

Calls 2

bytesFunction · 0.85
compressedUIntFunction · 0.85

Tested by

no test coverage detected