Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support comments in hex and bin strings #498

Merged
merged 7 commits into from
May 13, 2024

Conversation

mpilquist
Copy link
Contributor

@mpilquist mpilquist commented Apr 30, 2024

Example usage (from tests):

val packet = hex"""
  ; Start of first packet from https://wiki.wireshark.org/uploads/__moin_import__/attachments/SampleCaptures/mpeg2_mp2t_with_cc_drop01.pcap
  01 00 5e 7b ad 47 00 0c db 78 7d 00 08 00                      ; Ethernet header
  45 00 05 40 b6 9f 40 00 0c 11 de 95 51 a3 96 3c e9 70 03 28    ; IPv4 header
  c3 50 15 7c 05 2c 00 00                                        ; UDP header
  47 02 00 1e                                                    ; MP2T header
"""

@mpilquist mpilquist merged commit 81152b5 into main May 13, 2024
23 checks passed
@mpilquist mpilquist deleted the topic/support-comments-in-hex-and-bin branch May 13, 2024 12:13
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