Skip to main content

contentByteSize

@forge/monorepo


@forge/monorepo / backend/src / contentByteSize

Function: contentByteSize()

contentByteSize(value): number

Defined in: backend/src/artifacts/index.ts:69

The size of a content value once stored.

Measured on the serialised form, because that is what is stored and what is billed. Measuring the string before serialisation would under-count a structured value by exactly the amount its encoding adds.

Parameters

value

unknown

Returns

number