Title: (future) Consider ReadOnlySequence everywhere · Issue #3 · wowdev/TACTSharp · GitHub
Open Graph Title: (future) Consider ReadOnlySequence everywhere · Issue #3 · wowdev/TACTSharp
X Title: (future) Consider ReadOnlySequence everywhere · Issue #3 · wowdev/TACTSharp
Description: (ReadOnly)Span
Open Graph Description: (ReadOnly)Span
X Description: (ReadOnly)Span<T> is limited to int.MaxValue amout of entries. For all intents and purposes this is fine but is bound to break on files larger than 2GB. The alternative here is to instead use...
Opengraph URL: https://github.com/wowdev/TACTSharp/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(future) Consider ReadOnlySequence everywhere","articleBody":"`(ReadOnly)Span\u003cT\u003e` is limited to `int.MaxValue` amout of entries. For all intents and purposes this is fine but is bound to break on files larger than 2GB. The alternative here is to instead use `(ReadOnly)Sequence\u003cT\u003e`, but this introduces the need for special care across individual span boundaries.\n\nNormally this is also a non-issue because `TACT || CASC` files are not larger than 2 GB, but this is something to keep in mind for the future.\n\nThe general consensus would be to use [ReadOnlySequenceAccessor](https://dotnet.github.io/dotNext/api/DotNext.IO.MemoryMappedFiles.ReadOnlySequenceAccessor.html) and work off the sequence, trying to abstract away the span boundaries.\n\nReferences:\n1. https://github.com/dotnet/runtime/issues/24805","author":{"url":"https://github.com/Warpten","@type":"Person","name":"Warpten"},"datePublished":"2025-02-01T16:13:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/TACTSharp/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4b4b213-e286-6e86-9648-28b0b311b871 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A41E:1C3C8A:1715ABD:1D398A8:699171A1 |
| html-safe-nonce | 616cf8fb4a5977804674c01f0b8d5dc5f8e2f608f976f135e091f84a8a6ac60b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDFFOjFDM0M4QToxNzE1QUJEOjFEMzk4QTg6Njk5MTcxQTEiLCJ2aXNpdG9yX2lkIjoiNTc3Mjk0MjI5OTY4NTI4NjMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99743540344d1b3b0f238187fce248d5c112c111c3a29d211736118c6d0fb308 |
| hovercard-subject-tag | issue:2825292326 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/wowdev/TACTSharp/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bbe563651debd834e5fa90ea632ed7c2f9a868285ed84e5d589c0df29c507ead/wowdev/TACTSharp/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bbe563651debd834e5fa90ea632ed7c2f9a868285ed84e5d589c0df29c507ead/wowdev/TACTSharp/issues/3 |
| og:image:alt | (ReadOnly)Span |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Warpten |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/wowdev/TACTSharp git https://github.com/wowdev/TACTSharp.git |
| octolytics-dimension-user_id | 24960671 |
| octolytics-dimension-user_login | wowdev |
| octolytics-dimension-repository_id | 907240372 |
| octolytics-dimension-repository_nwo | wowdev/TACTSharp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 907240372 |
| octolytics-dimension-repository_network_root_nwo | wowdev/TACTSharp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width