fromBytes static method
Implementation
static KeyId fromBytes(ByteData data) {
final nativeData = ByteSlice.fromBytes(data);
try {
final id = DartApi.native.keyId
.fromBytes(nativeData.addressOf)
.extract((res) => res.asPointer<Void>());
return KeyId(id, true);
} finally {
nativeData.dispose();
}
}