MCPcopy Create free account
hub / github.com/CashScript/cashscript / encodeInt

Function encodeInt

packages/utils/src/data.ts:26–28  ·  view source on GitHub ↗
(int: bigint)

Source from the content-addressed store, hash-verified

24}
25
26export function encodeInt(int: bigint): Uint8Array {
27 return bigIntToVmNumber(int);
28}
29
30export function encodeIntAsFixedBytes(int: bigint, byteLength: number): Uint8Array {
31 const minimal = encodeInt(int);

Callers 15

createMessageMethod · 0.90
encodeFunctionArgumentFunction · 0.90
createUnlockingBytecodeFunction · 0.90
compileCastFunction · 0.90
visitContractMethod · 0.90
emitReplaceMethod · 0.90
visitInstantiationMethod · 0.90
visitArrayMethod · 0.90
visitIdentifierMethod · 0.90
visitIntLiteralMethod · 0.90
createMessageMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected