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

Function mdArray

test/dotnet-parser-tests.ts:246–256  ·  view source on GitHub ↗
(element: Buffer, rank: number, sizes: number[] = [], lowerBounds: number[] = [])

Source from the content-addressed store, hash-verified

244}
245
246function mdArray(element: Buffer, rank: number, sizes: number[] = [], lowerBounds: number[] = []) {
247 return Buffer.concat([
248 bytes(0x14),
249 element,
250 compressedUInt(rank),
251 compressedUInt(sizes.length),
252 ...sizes.map(compressedUInt),
253 compressedUInt(lowerBounds.length),
254 ...lowerBounds.map(compressedSignedInt),
255 ]);
256}
257
258function byRef(element: Buffer) {
259 return Buffer.concat([bytes(0x10), element]);

Callers 1

ecma335FixtureFunction · 0.85

Calls 2

bytesFunction · 0.85
compressedUIntFunction · 0.85

Tested by

no test coverage detected