dispose method
Frees the CanMessage struct that was natively allocated.
Implementation
void dispose() {
if (isNative) {
nativeLib.NativeCanMessage_free(pointer);
} else {
calloc.free(pointer.ref.data);
calloc.free(pointer);
}
_finalizer.detach(this);
_isDisposed = true;
}