SqliteBlob.Read 方法

定义

重载

Read(Span<Byte>)

从当前流读取字节序列,并将流中的位置向前移动读取的字节数。

Read(Byte[], Int32, Int32)

从当前流读取字节序列,并将流中的位置向前移动读取的字节数。

Read(Span<Byte>)

从当前流读取字节序列,并将流中的位置向前移动读取的字节数。

public virtual int Read (Span<byte> buffer);
public override int Read (Span<byte> buffer);
override this.Read : Span<byte> -> int
Public Overridable Function Read (buffer As Span(Of Byte)) As Integer
Public Overrides Function Read (buffer As Span(Of Byte)) As Integer

参数

buffer
Span<Byte>

内存的区域。 当此方法返回时,此区域的内容将替换为从当前源读取的字节。

返回

读入缓冲区中的总字节数。 如果很多字节当前不可用,则这可小于在缓冲区中分配的字节数;如果已到达流结尾,则为零 (0)。

适用于

Read(Byte[], Int32, Int32)

从当前流读取字节序列,并将流中的位置向前移动读取的字节数。

public override int Read (byte[] buffer, int offset, int count);
override this.Read : byte[] * int * int -> int
Public Overrides Function Read (buffer As Byte(), offset As Integer, count As Integer) As Integer

参数

buffer
Byte[]

字节数组。 此方法返回时,该缓冲区包含指定的字节数组,该数组的偏移量和(偏移量 + 计数 - 1)之间的值由从当前源中读取的字节替换。

offset
Int32

缓冲区中从零开始的字节偏移量,从此处开始存储从当前流中读取的数据。

count
Int32

要从当前流中最多读取的字节数。

返回

读入缓冲区中的总字节数。

适用于