Rediger

Del via


BlobBuilder.WriteBytes Method

Definition

Overloads

WriteBytes(Byte[], Int32, Int32)

Writes a specified number of bytes starting at a specified index in a byte array to the builder.

WriteBytes(Byte*, Int32)

Writes a specified number of bytes from a buffer to the builder.

WriteBytes(ImmutableArray<Byte>, Int32, Int32)

Writes a specified number of bytes starting at a specified index of an immutable array to the builder.

WriteBytes(ImmutableArray<Byte>)

Writes the contents of an immutable byte array to the builder.

WriteBytes(Byte[])

Writes the contents of a byte array to the builder.

WriteBytes(Byte, Int32)

Writes a specified number of occurrences of a byte value to the builder.

WriteBytes(Byte[], Int32, Int32)

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

Writes a specified number of bytes starting at a specified index in a byte array to the builder.

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)

Parameters

buffer
Byte[]
start
Int32
byteCount
Int32

The number of bytes to write.

Exceptions

buffer is null.

The range specified by start and byteCount falls outside of the bounds of buffer.

The builder is not writable; it has been linked with another one.

Applies to

WriteBytes(Byte*, Int32)

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

Writes a specified number of bytes from a buffer to the builder.

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

Parameters

buffer
Byte*
byteCount
Int32

The number of bytes to write.

Exceptions

buffer is null.

byteCount is negative.

The builder is not writable, it has been linked with another one.

Applies to

WriteBytes(ImmutableArray<Byte>, Int32, Int32)

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

Writes a specified number of bytes starting at a specified index of an immutable array to the builder.

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)

Parameters

start
Int32
byteCount
Int32

The number of bytes to write.

Exceptions

buffer is null.

The range specified by start and byteCount falls outside of the bounds of the buffer.

The builder is not writable; it has been linked with another one.

Applies to

WriteBytes(ImmutableArray<Byte>)

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

Writes the contents of an immutable byte array to the builder.

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))

Parameters

buffer
ImmutableArray<Byte>

The array to write.

Exceptions

buffer is null.

The builder is not writable; it has been linked with another one.

Applies to

WriteBytes(Byte[])

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

Writes the contents of a byte array to the builder.

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

Parameters

buffer
Byte[]

The byte array to write.

Exceptions

buffer is null.

The builder is not writable; it has been linked with another one.

Applies to

WriteBytes(Byte, Int32)

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

Writes a specified number of occurrences of a byte value to the builder.

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)

Parameters

value
Byte
byteCount
Int32

The number of occurences of value to write.

Exceptions

byteCount is negative.

The builder is not writable, it has been linked with another one.

Applies to