MEByteSource.ReadData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ReadData(Int64, Byte[], MEByteSourceReadBytesCallback) |
Read data asynchronously into a byte array. |
| ReadData(UIntPtr, Int64, MEByteSourceReadDataCallback) | |
| ReadData(Int64, Byte[], UIntPtr, NSError) |
Read data synchronously into a byte array. |
| ReadData(UIntPtr, Int64, Byte*, MEByteSourceReadBytesCallback) | |
| ReadData(UIntPtr, Int64, Byte[], MEByteSourceReadBytesCallback) |
Read data asynchronously into a byte array. |
| ReadData(UIntPtr, Int64, Byte*, UIntPtr, NSError) | |
| ReadData(UIntPtr, Int64, Byte[], UIntPtr, NSError) |
Read data synchronously into a byte array. |
ReadData(Int64, Byte[], MEByteSourceReadBytesCallback)
Read data asynchronously into a byte array.
public void ReadData(long offset, byte[] data, MediaExtension.MEByteSourceReadBytesCallback completionHandler);
member this.ReadData : int64 * byte[] * MediaExtension.MEByteSourceReadBytesCallback -> unit
Parameters
- offset
- Int64
The offset (relative to the start of the ifle) where to start reading.
- data
- Byte[]
The byte array to write the data into.
- completionHandler
- MEByteSourceReadBytesCallback
The delegate which is called when the read operation has completed.
Remarks
This overload will try to fill the data byte array with data.
Applies to
ReadData(UIntPtr, Int64, MEByteSourceReadDataCallback)
[Foundation.Export("readDataOfLength:fromOffset:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ReadData(UIntPtr length, long offset, MediaExtension.MEByteSourceReadDataCallback completionHandler);
[<Foundation.Export("readDataOfLength:fromOffset:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReadData : unativeint * int64 * MediaExtension.MEByteSourceReadDataCallback -> unit
override this.ReadData : unativeint * int64 * MediaExtension.MEByteSourceReadDataCallback -> unit
Parameters
- length
-
UIntPtr
unativeint
- offset
- Int64
- completionHandler
- MEByteSourceReadDataCallback
- Attributes
Applies to
ReadData(Int64, Byte[], UIntPtr, NSError)
Read data synchronously into a byte array.
public bool ReadData(long offset, byte[] data, out UIntPtr bytesRead, out Foundation.NSError? error);
member this.ReadData : int64 * byte[] * unativeint * NSError -> bool
Parameters
- offset
- Int64
The offset (relative to the start of the ifle) where to start reading.
- data
- Byte[]
The byte array to write the data into.
- bytesRead
-
UIntPtr
unativeint
Upon return, will contain the number of read bytes.
- error
- NSError
Null if an error occurred, otherwise an NSError instance with information about the error. The error will be EndOfStream if the end was reached.
Returns
True if successful, false otherwise.
Remarks
This overload will try to fill the data byte array with data.
Applies to
ReadData(UIntPtr, Int64, Byte*, MEByteSourceReadBytesCallback)
[Foundation.Export("readDataOfLength:fromOffset:toDestination:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ReadData(UIntPtr length, long offset, byte* dest, MediaExtension.MEByteSourceReadBytesCallback completionHandler);
[<Foundation.Export("readDataOfLength:fromOffset:toDestination:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReadData : unativeint * int64 * nativeptr<byte> * MediaExtension.MEByteSourceReadBytesCallback -> unit
override this.ReadData : unativeint * int64 * nativeptr<byte> * MediaExtension.MEByteSourceReadBytesCallback -> unit
Parameters
- length
-
UIntPtr
unativeint
- offset
- Int64
- dest
- Byte*
- completionHandler
- MEByteSourceReadBytesCallback
- Attributes
Applies to
ReadData(UIntPtr, Int64, Byte[], MEByteSourceReadBytesCallback)
Read data asynchronously into a byte array.
public void ReadData(UIntPtr length, long offset, byte[] data, MediaExtension.MEByteSourceReadBytesCallback completionHandler);
member this.ReadData : unativeint * int64 * byte[] * MediaExtension.MEByteSourceReadBytesCallback -> unit
Parameters
- length
-
UIntPtr
unativeint
The number of bytes to read.
- offset
- Int64
The offset (relative to the start of the ifle) where to start reading.
- data
- Byte[]
The byte array to write the data into.
- completionHandler
- MEByteSourceReadBytesCallback
The delegate which is called when the read operation has completed.
Applies to
ReadData(UIntPtr, Int64, Byte*, UIntPtr, NSError)
[Foundation.Export("readDataOfLength:fromOffset:toDestination:bytesRead:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ReadData(UIntPtr length, long offset, byte* dest, out UIntPtr bytesRead, out Foundation.NSError? error);
[<Foundation.Export("readDataOfLength:fromOffset:toDestination:bytesRead:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReadData : unativeint * int64 * nativeptr<byte> * unativeint * NSError -> bool
override this.ReadData : unativeint * int64 * nativeptr<byte> * unativeint * NSError -> bool
Parameters
- length
-
UIntPtr
unativeint
- offset
- Int64
- dest
- Byte*
- bytesRead
-
UIntPtr
unativeint
- error
- NSError
Returns
- Attributes
Applies to
ReadData(UIntPtr, Int64, Byte[], UIntPtr, NSError)
Read data synchronously into a byte array.
public bool ReadData(UIntPtr length, long offset, byte[] data, out UIntPtr bytesRead, out Foundation.NSError? error);
member this.ReadData : unativeint * int64 * byte[] * unativeint * NSError -> bool
Parameters
- length
-
UIntPtr
unativeint
The number of bytes to read.
- offset
- Int64
The offset (relative to the start of the ifle) where to start reading.
- data
- Byte[]
The byte array to write the data into.
- bytesRead
-
UIntPtr
unativeint
Upon return, will contain the number of read bytes.
- error
- NSError
Null if an error occurred, otherwise an NSError instance with information about the error. The error will be EndOfStream if the end was reached.
Returns
True if successful, false otherwise.