Skip to content

Write zeros for silent capture packets - #88

Merged
HEnquist merged 1 commit into
masterfrom
silent-capture-zeros
Nov 6, 2026
Merged

HEnquist merged 1 commit into
masterfrom
silent-capture-zeros

Conversation

@HEnquist

Copy link
Copy Markdown
Owner

Capture reads write zeros for packets flagged as silent, instead of copying the buffer.

  • read_from_device and read_from_device_to_deque zero silent packets, noted in both doc comments
  • read_from_device_to_deque returns the ReleaseBuffer error instead of unwrapping it, and takes the packet back out of the deque first

…from the deque read

WASAPI says the data of a packet flagged as silent should be ignored, so both capture
reads now write zeros for it instead of copying the buffer.

read_from_device_to_deque unwrapped the result of ReleaseBuffer. It now returns the
error, after taking the packet back out of the deque.
@HEnquist
HEnquist merged commit 9ec4365 into master Nov 6, 2026
3 checks passed
@HEnquist HEnquist mentioned this pull request Nov 6, 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.

1 participant