Title: fix: 修复严格别名问题和 position() 返回值 by CPythoner · Pull Request #8 · CPythoner/ByteBuffer · GitHub
Open Graph Title: fix: 修复严格别名问题和 position() 返回值 by CPythoner · Pull Request #8 · CPythoner/ByteBuffer
X Title: fix: 修复严格别名问题和 position() 返回值 by CPythoner · Pull Request #8 · CPythoner/ByteBuffer
Description: 描述
本 PR 修复了 Code Review 中发现的两个严重问题。
变更内容
1. 修复严格别名问题 (Issue #6)
问题: read
Open Graph Description: 描述 本 PR 修复了 Code Review 中发现的两个严重问题。 变更内容 1. 修复严格别名问题 (Issue #6) 问题: read<T>(index) 方法通过指针类型转换访问内存,违反 C++ strict aliasing 规则,可能导致未定义行为。 修改前: template <typename T> T read(uint32_t index) ...
X Description: 描述 本 PR 修复了 Code Review 中发现的两个严重问题。 变更内容 1. 修复严格别名问题 (Issue #6) 问题: read<T>(index) 方法通过指针类型转换访问内存,违反 C++ strict aliasing 规则,可能导致未定义行为。 修改前: template <typename T> T read(...
Opengraph URL: https://github.com/CPythoner/ByteBuffer/pull/8
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:84970fd2-bd7a-0a65-21ba-39d350aaa3fe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9652:1956C7:1E3A652:2900878:6A654CC2 |
| html-safe-nonce | 577289b27bbf5227e52ab3a8254fa8b856abf48727f2319741de4617f7b64dfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjUyOjE5NTZDNzoxRTNBNjUyOjI5MDA4Nzg6NkE2NTRDQzIiLCJ2aXNpdG9yX2lkIjoiMTQ5MjAxMzk2NzU5NDU3Mjk5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c0591cdfd2a15fb8b9d1866bb487dfad53c0532e402e72854c0df3ed1d5d8b9 |
| hovercard-subject-tag | pull_request:3486647452 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/CPythoner/ByteBuffer/pull/8/commits/b5191f467121a05b27a8ce37d005aebabb70802d |
| twitter:image | https://avatars.githubusercontent.com/u/6645605?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6645605?s=400&v=4 |
| og:image:alt | 描述 本 PR 修复了 Code Review 中发现的两个严重问题。 变更内容 1. 修复严格别名问题 (Issue #6) 问题: read<T>(index) 方法通过指针类型转换访问内存,违反 C++ strict aliasing 规则,可能导致未定义行为。 修改前: template <typename T> T read(uint32_t index) ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/CPythoner/ByteBuffer git https://github.com/CPythoner/ByteBuffer.git |
| octolytics-dimension-user_id | 6645605 |
| octolytics-dimension-user_login | CPythoner |
| octolytics-dimension-repository_id | 351674544 |
| octolytics-dimension-repository_nwo | CPythoner/ByteBuffer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 351674544 |
| octolytics-dimension-repository_network_root_nwo | CPythoner/ByteBuffer |
| 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 | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width