MCPcopy Create free account
hub / github.com/davidblewett/rure-python / state_heap_size

Method state_heap_size

regex/src/dfa.rs:1716–1718  ·  view source on GitHub ↗

The heap size, in bytes, of a single state in the transition table.

(&self)

Source from the content-addressed store, hash-verified

1714
1715 /// The heap size, in bytes, of a single state in the transition table.
1716 fn state_heap_size(&self) -> usize {
1717 self.num_byte_classes * mem::size_of::<StatePtr>()
1718 }
1719
1720 /// Like `next`, but uses unchecked access and is therefore unsafe.
1721 unsafe fn next_unchecked(&self, si: StatePtr, cls: usize) -> StatePtr {

Callers 1

add_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected