René's URL Explorer Experiment


Title: bug on simple parsing? · Issue #18 · PMunch/binaryparse · GitHub

Open Graph Title: bug on simple parsing? · Issue #18 · PMunch/binaryparse

X Title: bug on simple parsing? · Issue #18 · PMunch/binaryparse

Description: ran into it while trying this library for today's aoc: import binaryparse, streams block: let test1 = newStringStream("\xD2\xFE\x28") createParser(packet): u3: version u3: typeId var data = packet.get(test1) dump data outputs: data = (ve...

Open Graph Description: ran into it while trying this library for today's aoc: import binaryparse, streams block: let test1 = newStringStream("\xD2\xFE\x28") createParser(packet): u3: version u3: typeId var data = packet....

X Description: ran into it while trying this library for today's aoc: import binaryparse, streams block: let test1 = newStringStream("\xD2\xFE\x28") createParser(packet): u3: version u3: typeId var ...

Opengraph URL: https://github.com/PMunch/binaryparse/issues/18

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug on simple parsing?","articleBody":"ran into it while trying this library for [today's aoc](https://adventofcode.com/2021/day/16):\r\n\r\n```\r\nimport binaryparse, streams\r\n\r\nblock:\r\n  let test1 = newStringStream(\"\\xD2\\xFE\\x28\")\r\n\r\n  createParser(packet):\r\n    u3: version\r\n    u3: typeId\r\n  \r\n  var data = packet.get(test1)\r\n  dump data\r\n```\r\n\r\noutputs:\r\n\r\n```\r\ndata = (version: 6, typeId: 7)\r\n```\r\n\r\n but typeId should be 4.\r\n\r\nFor comparison [binarylang](https://github.com/sealmove/binarylang) has the correct output:\r\n\r\n```\r\nimport binarylang\r\n\r\nblock:\r\n  let test1 = newStringBitStream(\"\\xD2\\xFE\\x28\")\r\n\r\n  struct(packet):\r\n    u3: version\r\n    u3: typeId\r\n\r\n  var data = packet.get(test1)\r\n  # data is an object without a $ proc defined\r\n  echo data.version\r\n  echo data.typeId\r\n```\r\noutputs:\r\n```\r\n6\r\n4\r\n```\r\n","author":{"url":"https://github.com/pietroppeter","@type":"Person","name":"pietroppeter"},"datePublished":"2021-12-16T17:52:21Z","url":"https://github.com/PMunch/binaryparse/issues/18"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:439407c7-16ad-3dc5-7235-578bc6a04bc2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA914:2E5888:24A040:30860D:6B07C6D9
html-safe-nonce4a2a451f895b4e22057896db74250a6ecc2983fbeeda73a35c99d9dfe4730f83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTE0OjJFNTg4ODoyNEEwNDA6MzA4NjBEOjZCMDdDNkQ5IiwidmlzaXRvcl9pZCI6IjM3OTE0MTQ1ODE3MDk0ODk4ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac48f90f855ecc5d56d8dcd34b15b3489ccb2da5d8e8bbc14b3dbd1dbef3878712
hovercard-subject-tagissue:1082484731
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PMunch/binaryparse/18/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3f57b120ab53074f1ddc96787a4a33a7c04463b350d060ec84c581ff9a30876f/PMunch/binaryparse/issues/18
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3f57b120ab53074f1ddc96787a4a33a7c04463b350d060ec84c581ff9a30876f/PMunch/binaryparse/issues/18
og:image:altran into it while trying this library for today's aoc: import binaryparse, streams block: let test1 = newStringStream("\xD2\xFE\x28") createParser(packet): u3: version u3: typeId var data = packet....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepietroppeter
hostnamegithub.com
expected-hostnamegithub.com
None176c580172ff5ad9b9613f91a521417cd790cd3d786513ed70487aa605a0c30d
turbo-cache-controlno-preview
go-importgithub.com/PMunch/binaryparse git https://github.com/PMunch/binaryparse.git
octolytics-dimension-user_id2845482
octolytics-dimension-user_loginPMunch
octolytics-dimension-repository_id113347009
octolytics-dimension-repository_nwoPMunch/binaryparse
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113347009
octolytics-dimension-repository_network_root_nwoPMunch/binaryparse
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef7ea8487ffe46a9751a27e4977b6cd2f853125f2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PMunch/binaryparse/issues/18#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPMunch%2Fbinaryparse%2Fissues%2F18
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPMunch%2Fbinaryparse%2Fissues%2F18
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PMunch%2Fbinaryparse
Reloadhttps://github.com/PMunch/binaryparse/issues/18
Reloadhttps://github.com/PMunch/binaryparse/issues/18
Reloadhttps://github.com/PMunch/binaryparse/issues/18
PMunchhttps://github.com/PMunch
binaryparsehttps://github.com/PMunch/binaryparse
Codehttps://github.com/PMunch/binaryparse
Issues2 (2)https://github.com/PMunch/binaryparse/issues
Pull requests1 (1)https://github.com/PMunch/binaryparse/pulls
Actionshttps://github.com/PMunch/binaryparse/actions
Projectshttps://github.com/PMunch/binaryparse/projects
Security and qualityhttps://github.com/PMunch/binaryparse/security
Insightshttps://github.com/PMunch/binaryparse/pulse
https://github.com/PMunch/binaryparse
New issuehttps://github.com/login?return_to=https://github.com/PMunch/binaryparse/issues/18
New issuehttps://github.com/login?return_to=https://github.com/PMunch/binaryparse/issues/18
bug on simple parsing?https://github.com/PMunch/binaryparse/issues/18#top
https://github.com/pietroppeter
pietroppeterhttps://github.com/pietroppeter
on Dec 16, 2021https://github.com/PMunch/binaryparse/issues/18#issue-1082484731
today's aochttps://adventofcode.com/2021/day/16
binarylanghttps://github.com/sealmove/binarylang
Sign up for freehttps://github.com/signup?return_to=https://github.com/PMunch/binaryparse/issues/18
Sign in to commenthttps://github.com/login?return_to=https://github.com/PMunch/binaryparse/issues/18
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.