Skip to main content

SIZE_FIELD_WIDTH

@forge/monorepo


@forge/monorepo / backend/src / SIZE_FIELD_WIDTH

Variable: SIZE_FIELD_WIDTH

const SIZE_FIELD_WIDTH: 8 = 8

Defined in: backend/src/files/context.ts:45

A rounded, unit-bearing size.

Deliberately not the byte count. 104857600 and 1024 differ in width, so rendering bytes would make an attachment's token cost a function of its size — small, but AC-2 is a statement about measurably, and a property that holds approximately is one that stops holding when someone changes the renderer.