(kind: 'class' | 'valuetype', type: Buffer, args: Buffer[])
| 236 | } |
| 237 | |
| 238 | function 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 | |
| 242 | function szArray(element: Buffer) { |
| 243 | return Buffer.concat([bytes(0x1d), element]); |
no test coverage detected