-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a bytes
type to UDL
#1541
Comments
Hi @heinrich5991, this is a nice suggestion! A dedicated |
Over in Glean we also use |
This type is mapped to the native bytestring type in the various languages, i.e. - Kotlin: `UByteArray` - Python: `bytes` - Ruby: `String` with `Encoding::BINARY` - Swift: `Data` Also add tests exercising this new type. Fixes mozilla#1299. Fixes mozilla#1541.
This type is mapped to the native bytestring type in the various languages, i.e. - Kotlin: `UByteArray` - Python: `bytes` - Ruby: `String` with `Encoding::BINARY` - Swift: `Data` Also add tests exercising this new type. Fixes mozilla#1299. Fixes mozilla#1541.
This type is mapped to the native bytestring type in the various languages, i.e. - Kotlin: `UByteArray` - Python: `bytes` - Ruby: `String` with `Encoding::BINARY` - Swift: `Data` Also add tests exercising this new type. Fixes mozilla#1299. Fixes mozilla#1541.
This type is mapped to the native bytestring type in the various languages, i.e. - Kotlin: `UByteArray` - Python: `bytes` - Ruby: `String` with `Encoding::BINARY` - Swift: `Data` Also add tests exercising this new type. Fixes mozilla#1299. Fixes mozilla#1541.
Some languages, such as e.g. Python, distinguish between arrays of 8-bit integers (
List[int]
in Python) and byte buffers (bytes
in Python).This would IMO neatly solve #1299.
Kotlin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/
Python: https://docs.python.org/3/library/stdtypes.html#bytes
┆Issue is synchronized with this Jira Task
┆Issue Number: UNIFFI-262
The text was updated successfully, but these errors were encountered: