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