Skip to content

Commit

Permalink
feat: new package encoding (#78)
Browse files Browse the repository at this point in the history
* feat: new package encoding

* refactor: using `@math` instead of misusing `@int`

* feat: support show for Chars and drop `try_collect`

* refactor: reduce encoding bytes allocation overhead

* feat: Malformed Bytes instead of String

due to unsafe substring

* refactor: use param name `bytes` instead of `buf`

* feat: new api `to_utf{8,16,16le,16be}_bytes`

`write_utf{8,16,16le,16be}_char`: reduce `write_bytes` allocation overhead

* refactor: reduce necessary decode

* minor: add some comments on Decoder

* fix: utf16be encoding

---------

Co-authored-by: Yorkin <[email protected]>
  • Loading branch information
jetjinser and Yoorkin authored Dec 10, 2024
1 parent 91f0fdf commit 7b180d0
Show file tree
Hide file tree
Showing 7 changed files with 1,467 additions and 0 deletions.
Loading

0 comments on commit 7b180d0

Please sign in to comment.