• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 1794

06 Nov 2025 05:49AM UTC coverage: 89.733% (-0.09%) from 89.818%
1794

Pull #2921

github

bobzhang
feat(bytes): add missing methods to Bytes for API consistency with BytesView

- Add iter2() to BytesView for indexed iteration
- Add signed extraction methods to Bytes:
  * unsafe_extract_bit_signed
  * unsafe_extract_byte_signed
  * unsafe_extract_int_be/le
  * unsafe_extract_int64_be/le
- Add numeric conversion methods to Bytes:
  * to_int_be/le, to_int64_be/le
  * to_uint_be/le, to_uint64_be/le (deprecated)
  * to_float_be/le, to_double_be/le (deprecated)

All new Bytes methods delegate to BytesView via bs[:] for consistency.
All tests pass (173/173).
Pull Request #2921: feat(bytes): add missing methods to Bytes for API consistency with By…

3 of 14 new or added lines in 3 files covered. (21.43%)

9998 of 11142 relevant lines covered (89.73%)

180826.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.99
/bytes/bitstring.mbt


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc