Title: feat: Add `memory.dataUTF8()` built-in function by geraintluff · Pull Request #2974 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: feat: Add `memory.dataUTF8()` built-in function by geraintluff · Pull Request #2974 · AssemblyScript/assemblyscript
X Title: feat: Add `memory.dataUTF8()` built-in function by geraintluff · Pull Request #2974 · AssemblyScript/assemblyscript
Description: Implements #2972, providing a way to embed UTF-8 string constants.
Rationale
UTF-16 strings are naturally embedded in the data section if you use a string constant ("...") in your code.
If what you need is a UTF-8 string, then storing as WTF-16 wastes binary space and execution time.
Current workaround
You can currently achieve the same result by using memory.data
Open Graph Description: Implements #2972, providing a way to embed UTF-8 string constants. Rationale UTF-16 strings are naturally embedded in the data section if you use a string constant ("...") in your code. I...
X Description: Implements #2972, providing a way to embed UTF-8 string constants. Rationale UTF-16 strings are naturally embedded in the data section if you use a string constant ("...") in your...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/pull/2974
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:99c27cff-e228-61c0-9975-f70982c52d68 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 90CE:21B41E:15BADA5:1D2E5D8:696EAD92 |
| html-safe-nonce | df19ce60ddb9ac34908c00d8c76fdd051fc84cfc51a002c45d59c258bc642768 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MENFOjIxQjQxRToxNUJBREE1OjFEMkU1RDg6Njk2RUFEOTIiLCJ2aXNpdG9yX2lkIjoiODEwODU4MTYyMzAzNzg2NTM2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 219aab987abc081dabff1873d9ba3d7e578b26bc23b24742c6f81bb0bd45cb11 |
| hovercard-subject-tag | pull_request:3169548297 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/AssemblyScript/assemblyscript/pull/2974/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1957191?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1957191?s=400&v=4 |
| og:image:alt | Implements #2972, providing a way to embed UTF-8 string constants. Rationale UTF-16 strings are naturally embedded in the data section if you use a string constant ("...") in your code. I... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-cache |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width