BlobWriter.WriteBytes Method

Definition

Overloads

WriteBytes(Byte[], Int32, Int32)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(byte[] buffer, int start, int byteCount);

Parameters

buffer
Byte[]
start
Int32
byteCount
Int32

Exceptions

buffer is null.

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

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(Stream, Int32)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public int WriteBytes(System.IO.Stream source, int byteCount);

Parameters

source
Stream
byteCount
Int32

Returns

Exceptions

source is null.

byteCount is negative.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(Byte*, Int32)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(byte* buffer, int byteCount);

Parameters

buffer
Byte*
byteCount
Int32

Exceptions

buffer is null.

byteCount is negative.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(ImmutableArray<Byte>, Int32, Int32)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(System.Collections.Immutable.ImmutableArray<byte> buffer, int start, int byteCount);

Parameters

start
Int32
byteCount
Int32

Exceptions

buffer is null.

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

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(BlobBuilder)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(System.Reflection.Metadata.BlobBuilder source);

Parameters

source
BlobBuilder

Exceptions

source is null.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(ImmutableArray<Byte>)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(System.Collections.Immutable.ImmutableArray<byte> buffer);

Parameters

Exceptions

buffer is null.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(Byte[])

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(byte[] buffer);

Parameters

buffer
Byte[]

Exceptions

buffer is null.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

WriteBytes(Byte, Int32)

Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
Source:
BlobWriter.cs
C#
public void WriteBytes(byte value, int byteCount);

Parameters

value
Byte
byteCount
Int32

Exceptions

byteCount is negative.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)