Skip to content

make-Frame.buf-pointers-optional#29

Merged
kristoff-it merged 1 commit intoallyourcodebase:mainfrom
nicksanford:make-Frame.buf-pointers-optional
Mar 23, 2026
Merged

make-Frame.buf-pointers-optional#29
kristoff-it merged 1 commit intoallyourcodebase:mainfrom
nicksanford:make-Frame.buf-pointers-optional

Conversation

@nicksanford
Copy link
Contributor

Let me know if I'm abusing / misunderstanding the API.

I wasn't able to find a way to learn which of the 8 buf pointers are null given they are not optional.

This allows users to perform null checks so they can know which elements of buf are valid.

@kristoff-it
Copy link
Member

Yes that's correct, buf can be null for both frames and packets to indicate that the frame/packet points at data that is not "owned" and that should not be freed when unreferencing the packet.

@kristoff-it kristoff-it merged commit ed674b3 into allyourcodebase:main Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants