revert method

void revert()

Discards all changes that have been made to a transacted stream since the last IStream.commit call.

On streams open in direct mode and streams using the COM compound file implementation of IStream.revert, this method has no effect.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/objidl/nf-objidl-istream-revert.

Implementation

@pragma('vm:prefer-inline')
void revert() {
  final hr$ = HRESULT(_RevertFn(ptr));
  if (hr$.isError) throw WindowsException(hr$);
}