FSBlockDeviceResource.Read 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 |
|---|---|
| Read(Byte[], Int64, UIntPtr, NSError) |
Read data from a resource. |
| Read(Byte[], Int64, UIntPtr, FSBlockDeviceResourceReadReplyHandler) |
Read data from a resource and execute a callback when completed. |
| Read(IntPtr, Int64, UIntPtr, NSError) | |
| Read(IntPtr, Int64, UIntPtr, FSBlockDeviceResourceReadReplyHandler) |
Read(Byte[], Int64, UIntPtr, NSError)
Read data from a resource.
public UIntPtr Read(byte[] buffer, long offset, UIntPtr length, out Foundation.NSError? error);
member this.Read : byte[] * int64 * unativeint * NSError -> unativeint
Parameters
- buffer
- Byte[]
An array of bytes where the read data will be stored.
- offset
- Int64
The zero-based byte offset in buffer at which to begin storing the data read from the current resource.
- length
-
UIntPtr
unativeint
The maximum number of bytes to be read from the current resource.
- error
- NSError
The error object if the operation fails, null otherwise.
Returns
unativeint
The number of bytes read.
Applies to
Read(Byte[], Int64, UIntPtr, FSBlockDeviceResourceReadReplyHandler)
Read data from a resource and execute a callback when completed.
public void Read(byte[] buffer, long offset, UIntPtr length, FSKit.FSBlockDeviceResourceReadReplyHandler reply);
member this.Read : byte[] * int64 * unativeint * FSKit.FSBlockDeviceResourceReadReplyHandler -> unit
Parameters
- buffer
- Byte[]
An array of bytes where the read data will be stored.
- offset
- Int64
The zero-based byte offset in buffer at which to begin storing the data read from the current resource.
- length
-
UIntPtr
unativeint
The maximum number of bytes to be read from the current resource.
The callback to call when the read operation is complete.
Applies to
Read(IntPtr, Int64, UIntPtr, NSError)
[Foundation.Export("readInto:startingAt:length:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr Read(IntPtr buffer, long offset, UIntPtr length, out Foundation.NSError? error);
[<Foundation.Export("readInto:startingAt:length:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Read : nativeint * int64 * unativeint * NSError -> unativeint
override this.Read : nativeint * int64 * unativeint * NSError -> unativeint
Parameters
- buffer
-
IntPtr
nativeint
- offset
- Int64
- length
-
UIntPtr
unativeint
- error
- NSError
Returns
unativeint
- Attributes
Applies to
Read(IntPtr, Int64, UIntPtr, FSBlockDeviceResourceReadReplyHandler)
[Foundation.Export("readInto:startingAt:length:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void Read(IntPtr buffer, long offset, UIntPtr length, FSKit.FSBlockDeviceResourceReadReplyHandler completionHandler);
[<Foundation.Export("readInto:startingAt:length:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Read : nativeint * int64 * unativeint * FSKit.FSBlockDeviceResourceReadReplyHandler -> unit
override this.Read : nativeint * int64 * unativeint * FSKit.FSBlockDeviceResourceReadReplyHandler -> unit
Parameters
- buffer
-
IntPtr
nativeint
- offset
- Int64
- length
-
UIntPtr
unativeint
- completionHandler
- FSBlockDeviceResourceReadReplyHandler
- Attributes