René's URL Explorer Experiment


Title: Incorrect working in systems with constant msgpack types headers · Issue #870 · msgpack/msgpack-java · GitHub

Open Graph Title: Incorrect working in systems with constant msgpack types headers · Issue #870 · msgpack/msgpack-java

X Title: Incorrect working in systems with constant msgpack types headers · Issue #870 · msgpack/msgpack-java

Description: Problem description Let's imagine that I have a system that accepts only numbers encoded in UINT16. Using the API with automatic header selection, it is impossible to encode values from 0 to 2^8-1 in UINT16 because MessagePacker will off...

Open Graph Description: Problem description Let's imagine that I have a system that accepts only numbers encoded in UINT16. Using the API with automatic header selection, it is impossible to encode values from 0 to 2^8-1 ...

X Description: Problem description Let's imagine that I have a system that accepts only numbers encoded in UINT16. Using the API with automatic header selection, it is impossible to encode values from 0 to 2^...

Opengraph URL: https://github.com/msgpack/msgpack-java/issues/870

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect working in systems with constant msgpack types headers","articleBody":"## Problem description\n\nLet's imagine that I have a system that accepts only numbers encoded in `UINT16`. \n\nUsing the API with automatic header selection, it is impossible to encode values from `0` to `2^8-1` in `UINT16` because `MessagePacker` will offer the types `UINT8`, `INT8`, `NEGFIXINT`, `POSFIXINT`. This will happen until the number exceeds the ranges `UINT8`, `INT8`, `NEGFIXINT`, `POSFIXINT`.\n\n## Suggestions for API improvements for statically typed systems\n\nI suggest introducing an API in which the client can choose the type of encoded header.\nFor example: \n```java\n    public MessagePacker packUINT(final short b, final MessageFormat type)\n        throws IOException\n    {\n        switch (type) {\n            case UINT8:\n                writeByteAndByte(UINT8, (byte) b);\n                break;\n            case UINT16:\n                writeByteAndShort(UINT16, b);\n                break;\n            case UINT32:\n                writeByteAndInt(UINT32, b);\n                break;\n            case UINT64:\n                writeByteAndLong(UINT64, b);\n                break;\n            default: \n                throw new MessagePackException(\"Cannot convert '\" + type + \"' to UINT family types.\");\n        }\n        return this;\n    }\n```\nHere, a method should be understood as a set of overloaded methods with `short`, `int`, `long`, `BigInteger` value arguments . Conversion based on narrowing casting\n\nA similar solution for `FLOAT32/64` types, `INT8,16,32,64` families.\nThe code has already been written, it remains to send a PR\n","author":{"url":"https://github.com/nickkkccc","@type":"Person","name":"nickkkccc"},"datePublished":"2025-01-27T20:11:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/870/msgpack-java/issues/870"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0c86e537-7803-4862-c2ca-cfb54556cc59
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAB0E:18C7E2:21B399F:2D8AD08:6A538640
html-safe-noncec9e9865bb68263f3cca30d49cb0d6a68d80a5353e89e2a7f9ae1ab5dba5434b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjBFOjE4QzdFMjoyMUIzOTlGOjJEOEFEMDg6NkE1Mzg2NDAiLCJ2aXNpdG9yX2lkIjoiODY5MTI2MzQzNzkxNjA0NjkxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf76cf84c804a3d66b87d6c8e95b6379dc580d3a261e0f6b0ccf96517d6dcd656
hovercard-subject-tagissue:2813955555
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/msgpack/msgpack-java/870/issue_layout
twitter:imagehttps://opengraph.githubassets.com/96c8468e2d273b8c39877dae9fedfc8b9ee770c8944e7b41907fb37d78f3a7e4/msgpack/msgpack-java/issues/870
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/96c8468e2d273b8c39877dae9fedfc8b9ee770c8944e7b41907fb37d78f3a7e4/msgpack/msgpack-java/issues/870
og:image:altProblem description Let's imagine that I have a system that accepts only numbers encoded in UINT16. Using the API with automatic header selection, it is impossible to encode values from 0 to 2^8-1 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenickkkccc
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id1971346
octolytics-dimension-repository_nwomsgpack/msgpack-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1971346
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-java
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-java/issues/870#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-java%2Fissues%2F870
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-java%2Fissues%2F870
Sign up https://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=msgpack%2Fmsgpack-java
Reloadhttps://github.com/msgpack/msgpack-java/issues/870
Reloadhttps://github.com/msgpack/msgpack-java/issues/870
Reloadhttps://github.com/msgpack/msgpack-java/issues/870
Please reload this pagehttps://github.com/msgpack/msgpack-java/issues/870
msgpack https://github.com/msgpack
msgpack-javahttps://github.com/msgpack/msgpack-java
Notifications https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Fork 323 https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Star 1.5k https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Code https://github.com/msgpack/msgpack-java
Issues 60 https://github.com/msgpack/msgpack-java/issues
Pull requests 5 https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality 1 https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
Code https://github.com/msgpack/msgpack-java
Issues https://github.com/msgpack/msgpack-java/issues
Pull requests https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
Incorrect working in systems with constant msgpack types headershttps://github.com/msgpack/msgpack-java/issues/870#top
https://github.com/nickkkccc
nickkkccchttps://github.com/nickkkccc
on Jan 27, 2025https://github.com/msgpack/msgpack-java/issues/870#issue-2813955555
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

Viewport: width=device-width


URLs of crawlers that visited me.