Share via


BlobBuilder.WriteBytes 方法

定义

重载

WriteBytes(Byte[], Int32, Int32)

将从字节数组中的指定索引处开始的指定字节数写入生成器。

WriteBytes(Byte*, Int32)

将指定的字节数从缓冲区写入生成器。

WriteBytes(ImmutableArray<Byte>, Int32, Int32)

将从不可变数组的指定索引处开始的指定字节数写入生成器。

WriteBytes(ImmutableArray<Byte>)

将不可变字节数组的内容写入生成器。

WriteBytes(Byte[])

将字节数组的内容写入生成器。

WriteBytes(Byte, Int32)

将指定的字节值出现次数写入生成器。

WriteBytes(Byte[], Int32, Int32)

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将从字节数组中的指定索引处开始的指定字节数写入生成器。

public:
 void WriteBytes(cli::array <System::Byte> ^ buffer, int start, int byteCount);
public void WriteBytes (byte[] buffer, int start, int byteCount);
member this.WriteBytes : byte[] * int * int -> unit
Public Sub WriteBytes (buffer As Byte(), start As Integer, byteCount As Integer)

参数

buffer
Byte[]
start
Int32
byteCount
Int32

要写入的字节数。

例外

buffernull

startbyteCount 指定的范围超出了 buffer 的界限。

此生成器不可写入;它已与另一个生成器链接。

适用于

WriteBytes(Byte*, Int32)

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将指定的字节数从缓冲区写入生成器。

public:
 void WriteBytes(System::Byte* buffer, int byteCount);
public void WriteBytes (byte* buffer, int byteCount);
member this.WriteBytes : nativeptr<byte> * int -> unit

参数

buffer
Byte*
byteCount
Int32

要写入的字节数。

例外

buffernull

byteCount 为负数。

此生成器不可写入,它已与另一个生成器链接。

适用于

WriteBytes(ImmutableArray<Byte>, Int32, Int32)

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将从不可变数组的指定索引处开始的指定字节数写入生成器。

public:
 void WriteBytes(System::Collections::Immutable::ImmutableArray<System::Byte> buffer, int start, int byteCount);
public void WriteBytes (System.Collections.Immutable.ImmutableArray<byte> buffer, int start, int byteCount);
member this.WriteBytes : System.Collections.Immutable.ImmutableArray<byte> * int * int -> unit
Public Sub WriteBytes (buffer As ImmutableArray(Of Byte), start As Integer, byteCount As Integer)

参数

start
Int32
byteCount
Int32

要写入的字节数。

例外

buffernull

startbyteCount 指定的范围超出了 buffer 的范围。

此生成器不可写入;它已与另一个生成器链接。

适用于

WriteBytes(ImmutableArray<Byte>)

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将不可变字节数组的内容写入生成器。

public:
 void WriteBytes(System::Collections::Immutable::ImmutableArray<System::Byte> buffer);
public void WriteBytes (System.Collections.Immutable.ImmutableArray<byte> buffer);
member this.WriteBytes : System.Collections.Immutable.ImmutableArray<byte> -> unit
Public Sub WriteBytes (buffer As ImmutableArray(Of Byte))

参数

buffer
ImmutableArray<Byte>

要写入的数组。

例外

buffernull

此生成器不可写入;它已与另一个生成器链接。

适用于

WriteBytes(Byte[])

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将字节数组的内容写入生成器。

public:
 void WriteBytes(cli::array <System::Byte> ^ buffer);
public void WriteBytes (byte[] buffer);
member this.WriteBytes : byte[] -> unit
Public Sub WriteBytes (buffer As Byte())

参数

buffer
Byte[]

要写入的字节数组。

例外

buffernull

此生成器不可写入;它已与另一个生成器链接。

适用于

WriteBytes(Byte, Int32)

Source:
BlobBuilder.cs
Source:
BlobBuilder.cs
Source:
BlobBuilder.cs

将指定的字节值出现次数写入生成器。

public:
 void WriteBytes(System::Byte value, int byteCount);
public void WriteBytes (byte value, int byteCount);
member this.WriteBytes : byte * int -> unit
Public Sub WriteBytes (value As Byte, byteCount As Integer)

参数

value
Byte
byteCount
Int32

要写入的 value 的出现次数。

例外

byteCount 为负数。

此生成器不可写入,它已与另一个生成器链接。

适用于