FileIO class
Provides helper methods for reading and writing files that are represented by objects of type IStorageFile.
Constructors
-
FileIO.fromPtr(Pointer<
COMObject> ptr)
Properties
Methods
-
addRef(
) → int -
Increments the reference count for an interface pointer to a COM object.
inherited
-
detach(
) → void -
Detaches the object from the
Finalizer
.inherited -
getIids(
Pointer< Uint32> iidCount, Pointer<Pointer< iids) → intGUID> > -
inherited
-
getRuntimeClassName(
Pointer< IntPtr> className) → int -
inherited
-
getTrustLevel(
Pointer< Int32> trustLevel) → int -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInterface(
Pointer< GUID> riid, Pointer<Pointer< ppvObject) → intNativeType> > -
Queries a COM object for a pointer to one of its interface; identifying
the interface by a reference to its interface identifier (IID).
inherited
-
release(
) → int -
Decrements the reference count for an interface on a COM object.
inherited
-
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
appendLinesAsync(
IStorageFile? file, IIterable< String> ? lines) → Future<void> -
appendLinesWithEncodingAsync(
IStorageFile? file, IIterable< String> ? lines, UnicodeEncoding encoding) → Future<void> -
appendTextAsync(
IStorageFile? file, String contents) → Future< void> -
appendTextWithEncodingAsync(
IStorageFile? file, String contents, UnicodeEncoding encoding) → Future< void> -
readBufferAsync(
IStorageFile? file) → Future< IBuffer?> -
readLinesAsync(
IStorageFile? file) → Future< IVector< String> > -
readLinesWithEncodingAsync(
IStorageFile? file, UnicodeEncoding encoding) → Future< IVector< String> > -
readTextAsync(
IStorageFile? file) → Future< String> -
readTextWithEncodingAsync(
IStorageFile? file, UnicodeEncoding encoding) → Future< String> -
writeBufferAsync(
IStorageFile? file, IBuffer? buffer) → Future< void> -
writeBytesAsync(
IStorageFile? file, List< int> buffer) → Future<void> -
writeLinesAsync(
IStorageFile? file, IIterable< String> ? lines) → Future<void> -
writeLinesWithEncodingAsync(
IStorageFile? file, IIterable< String> ? lines, UnicodeEncoding encoding) → Future<void> -
writeTextAsync(
IStorageFile? file, String contents) → Future< void> -
writeTextWithEncodingAsync(
IStorageFile? file, String contents, UnicodeEncoding encoding) → Future< void>