mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-05-20 16:29:31 +00:00
Add From Bytes to Vec.
This commit is contained in:
parent
910fe0e003
commit
622c6a8c39
@ -24,6 +24,12 @@ impl From<Vec<u8>> for Bytes {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Bytes> for Vec<u8> {
|
||||
fn from(value: Bytes) -> Self {
|
||||
value.into_inner()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ffi::Bytes> for Bytes {
|
||||
fn from(mut ffi_value: ffi::Bytes) -> Self {
|
||||
let vec = if ffi_value.size == 0 || ffi_value.data.is_null() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user