Skip to content

probe-web / @probe-web/ui / typeSize

Function: typeSize()

ts
function typeSize(type, pointerBytes?): number | null;

Defined in: packages/ui/src/type-size.ts:5

Byte size of a variable from the type name probe-rs reports (Rust or C spelling), for memory highlights. null when the size cannot be known from the name alone (structs, enums, str).

Parameters

ParameterTypeDefault value
typestring | null | undefinedundefined
pointerBytesnumber4

Returns

number | null