Skip to content

Query about LazyOffsetArray16 iterator #211

@asibahi

Description

@asibahi

Hello.

This is not an issue. Just a question about the library. I am hoping @RazrFalcon would help.

As far as I understand the type and the library, the iterator for LazyOffsetArray16is not fused, and can be called multiple times even after the the first None. Yet the usages I have come across in rustybuzz don't do that.

My question is why the data is structured that way. Why is the inner array a LazyArray of optional offsets if the iterator is supposed at the first null found and that's it.

in other words why is the offsets array a LazyArray16(Option<Offset16>) and not LazyArray16(Offset16) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions