MmapSource
Mojo struct 🡭
MmapSource
Section titled “MmapSource”@memory_onlystruct MmapSourceZero-copy source over a memory-mapped file.
Owns the mapping so record views remain valid for the parser’s lifetime.
Fields
Section titled “Fields”- map (
MappedFile)
Implemented traits
Section titled “Implemented traits”AnyType, Deinitable, Movable
Methods
Section titled “Methods”__init__
Section titled “__init__”fn def __init__(out self, path: Path)Args:
- path (
Path) - self (
Self)
Returns:
Self
Raises:
context
Section titled “context”fn def context(self) -> ParseContextArgs:
- self (
Self)
Returns:
ParseContext
note_consumed
Section titled “note_consumed”fn def note_consumed(mut self)Args:
- self (
Self)
has_more
Section titled “has_more”fn def has_more(self) -> BoolArgs:
- self (
Self)
Returns:
Bool
find_next
Section titled “find_next”fn def find_next[mode: Int8](mut self) -> FoundRecordParameters:
- mode (
Int8)
Args:
- self (
Self)
Returns:
FoundRecord
Raises: