2 ms·
If you’re talking about Rust, https://doc.rust-lang.org/stable/std/string/struct.String.html#method.as_bytes https://doc.rust-lang.org/stable/std/string/struct.
by steveklabnik 7y ago
If you’re talking about Rust, https://doc.rust-lang.org/stable/std/string/struct.String.html#method.as_bytes https://doc.rust-lang.org/stable/std/string/struct.String.ht... and related methods will give you byte slices. If not Rust, I’m sure the language has some sort of API!