Add arbitrary size byte arrays #947

Merged
zxq9 merged 7 commits from arbitrary_sized_byte_arrays into ceres 2023-06-30 23:21:50 +09:00
zxq9 commented 2023-05-30 18:21:56 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Introduce arbitrary sized binary arrays (type bytes()); adding Bytes.split_any, Bytes.to_fixed_size, Bytes.to_any_size, Bytes.size, String.to_bytes, and Int.to_bytes; and adjust Bytes.concat to allow both fixed and arbitrary sized byte arrays.

This PR is supported by the Æternity Crypto Foundation

*Created by: hanssv* Introduce arbitrary sized binary arrays (type `bytes()`); adding `Bytes.split_any`, `Bytes.to_fixed_size`, `Bytes.to_any_size`, `Bytes.size`, `String.to_bytes`, and `Int.to_bytes`; and adjust `Bytes.concat` to allow both fixed and arbitrary sized byte arrays. This PR is supported by the Æternity Crypto Foundation
zxq9 commented 2023-06-26 18:28:13 +09:00 (Migrated from gitlab.com)

Created by: seanhinde

Would prefer:
""Concatenates two byte arrays. If m and n are..""

*Created by: seanhinde* Would prefer: ""Concatenates two byte arrays. If `m` and `n` are..""
zxq9 commented 2023-06-26 21:08:08 +09:00 (Migrated from gitlab.com)

Created by: seanhinde

Review: Approved

*Created by: seanhinde* **Review:** Approved
zxq9 commented 2023-06-27 11:05:50 +09:00 (Migrated from gitlab.com)

Created by: radrow

You know there is an amazing function lists:enumerate which was added to stdlib by a well known and respected compiler developer?

*Created by: radrow* You know there is an amazing function lists:enumerate which was added to stdlib by a well known and respected compiler developer?
zxq9 commented 2023-06-27 11:09:10 +09:00 (Migrated from gitlab.com)

Created by: radrow

Review: Approved

*Created by: radrow* **Review:** Approved
zxq9 commented 2023-06-30 21:19:45 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Yes, but only in OTP-25 :-) we still support older versions I think!

*Created by: hanssv* Yes, but only in OTP-25 :-) we still support older versions I think!
zxq9 commented 2023-06-30 23:21:50 +09:00 (Migrated from gitlab.com)

Merged by: hanssv at 2023-06-30 14:21:50 UTC

*Merged by: hanssv at 2023-06-30 14:21:50 UTC*
Sign in to join this conversation.
No description provided.