Language

NSInputStream.Read Method

Definition

Overloads

Name Description
Read(Byte[], UIntPtr)

Reads data from the stream into the provided buffer.

Read(IntPtr, UIntPtr)
Read(Byte[], Int32, UIntPtr)

Reads data from the stream into the provided buffer starting at the given offset.

Read(Byte[], UIntPtr)

Reads data from the stream into the provided buffer.

public IntPtr Read(byte[] buffer, UIntPtr len);
member this.Read : byte[] * unativeint -> nativeint

Parameters

buffer
Byte[]

The buffer where data should be put.

len
UIntPtr

unativeint

The size of the buffer (in bytes).

Returns

IntPtr

nativeint

The number of bytes actually written.

Applies to

Read(IntPtr, UIntPtr)

[Foundation.Export("read:maxLength:")]
public virtual IntPtr Read(IntPtr buffer, UIntPtr len);
[<Foundation.Export("read:maxLength:")>]
abstract member Read : nativeint * unativeint -> nativeint
override this.Read : nativeint * unativeint -> nativeint

Parameters

buffer
IntPtr

nativeint

len
UIntPtr

unativeint

Returns

IntPtr

nativeint

Attributes

Applies to

Read(Byte[], Int32, UIntPtr)

Reads data from the stream into the provided buffer starting at the given offset.

public IntPtr Read(byte[] buffer, int offset, UIntPtr len);
member this.Read : byte[] * int * unativeint -> nativeint

Parameters

buffer
Byte[]

The buffer where data should be stored.

offset
Int32

The byte offset in buffer at which to begin storing data.

len
UIntPtr

unativeint

The maximum number of bytes to read.

Returns

IntPtr

nativeint

Applies to