class

TermBuf::LinkTable

Inherits Reference < Object

Stability: internal

Interns links so a Style can carry a four byte id rather than a string.

Guarded, because an application interns a link on whatever fibre it happens to be drawing from while the encoder resolves ids on the one that owns the buffer.

Constants

NONE = 0_u32

The id meaning no link, which every table reserves.

Constructors

Instance methods

empty?

Whether no link has been interned.

Source
id(uri : String, id : String | Nil = nil) : LinkId

The id for link, assigning one if this is the first time it is seen.

Source
size

Number of distinct links interned so far, not counting NONE.

Source