MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / to_byte_array

Method to_byte_array

crates/lib/src/identity.rs:220–222  ·  view source on GitHub ↗

Returns this `Identity` as a byte array.

(&self)

Source from the content-addressed store, hash-verified

218
219 /// Returns this `Identity` as a byte array.
220 pub fn to_byte_array(&self) -> [u8; 32] {
221 self.__identity__.to_le_bytes()
222 }
223
224 /// Convert this `Identity` to a BIG-ENDIAN byte array.
225 pub fn to_be_byte_array(&self) -> [u8; 32] {

Callers 9

spacetime_reverse_dnsMethod · 0.80
get_energy_balanceMethod · 0.80
set_energy_balanceMethod · 0.80
write_toMethod · 0.80

Calls 1

to_le_bytesMethod · 0.80

Tested by

no test coverage detected