FSBlockDeviceResource.Write Method

Definition

Overloads

Name Description
Write(Byte[], Int64, UIntPtr, NSError)

Write data to a resource and execute a callback when completed.

Write(Byte[], Int64, UIntPtr, FSBlockDeviceResourceWriteReplyHandler)

Write data to a resource and execute a callback when completed.

Write(IntPtr, Int64, UIntPtr, NSError)
Write(IntPtr, Int64, UIntPtr, FSBlockDeviceResourceWriteReplyHandler)

Write(Byte[], Int64, UIntPtr, NSError)

Write data to a resource and execute a callback when completed.

public UIntPtr Write(byte[] buffer, long offset, UIntPtr length, out Foundation.NSError? error);
member this.Write : byte[] * int64 * unativeint * NSError -> unativeint

Parameters

buffer
Byte[]

An array of bytes with the data to write.

offset
Int64

The zero-based byte offset in buffer where to begin reading the data to be written to the current resource.

length
UIntPtr

unativeint

The maximum number of bytes to write to the current resource.

error
NSError

The error object if the operation fails, null otherwise.

Returns

UIntPtr

unativeint

The number of bytes written.

Applies to

Write(Byte[], Int64, UIntPtr, FSBlockDeviceResourceWriteReplyHandler)

Write data to a resource and execute a callback when completed.

public void Write(byte[] buffer, long offset, UIntPtr length, FSKit.FSBlockDeviceResourceWriteReplyHandler reply);
member this.Write : byte[] * int64 * unativeint * FSKit.FSBlockDeviceResourceWriteReplyHandler -> unit

Parameters

buffer
Byte[]

An array of bytes with the data to write.

offset
Int64

The zero-based byte offset in buffer where to begin reading the data to be written to the current resource.

length
UIntPtr

unativeint

The maximum number of bytes to write to the current resource.

reply
FSBlockDeviceResourceWriteReplyHandler

The callback to call when the write operation is complete.

Applies to

Write(IntPtr, Int64, UIntPtr, NSError)

[Foundation.Export("writeFrom:startingAt:length:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr Write(IntPtr buffer, long offset, UIntPtr length, out Foundation.NSError? error);
[<Foundation.Export("writeFrom:startingAt:length:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Write : nativeint * int64 * unativeint * NSError -> unativeint
override this.Write : nativeint * int64 * unativeint * NSError -> unativeint

Parameters

buffer
IntPtr

nativeint

offset
Int64
length
UIntPtr

unativeint

error
NSError

Returns

UIntPtr

unativeint

Attributes

Applies to

Write(IntPtr, Int64, UIntPtr, FSBlockDeviceResourceWriteReplyHandler)

[Foundation.Export("writeFrom:startingAt:length:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void Write(IntPtr buffer, long offset, UIntPtr length, FSKit.FSBlockDeviceResourceWriteReplyHandler completionHandler);
[<Foundation.Export("writeFrom:startingAt:length:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Write : nativeint * int64 * unativeint * FSKit.FSBlockDeviceResourceWriteReplyHandler -> unit
override this.Write : nativeint * int64 * unativeint * FSKit.FSBlockDeviceResourceWriteReplyHandler -> unit

Parameters

buffer
IntPtr

nativeint

offset
Int64
length
UIntPtr

unativeint

Attributes

Applies to