共用方式為


CborWriter.WriteByteString 方法

定義

多載

WriteByteString(Byte[])

以位元組字串編碼 (主要類型 2) 形式寫入緩衝區。

WriteByteString(ReadOnlySpan<Byte>)

以位元組字串編碼 (主要類型 2) 形式寫入緩衝區。

WriteByteString(Byte[])

來源:
CborWriter.String.cs
來源:
CborWriter.String.cs
來源:
CborWriter.String.cs

以位元組字串編碼 (主要類型 2) 形式寫入緩衝區。

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

參數

value
Byte[]

要寫入的值。

例外狀況

提供的值不可為 null

寫入新值,已超過父資料項目的明確長度。

-或-

在父資料項目中,不允許已編碼值的主要類型。

-或-

在目前的一致性模式中不接受寫入的資料。

適用於

WriteByteString(ReadOnlySpan<Byte>)

來源:
CborWriter.String.cs
來源:
CborWriter.String.cs
來源:
CborWriter.String.cs

以位元組字串編碼 (主要類型 2) 形式寫入緩衝區。

public:
 void WriteByteString(ReadOnlySpan<System::Byte> value);
public void WriteByteString (ReadOnlySpan<byte> value);
member this.WriteByteString : ReadOnlySpan<byte> -> unit
Public Sub WriteByteString (value As ReadOnlySpan(Of Byte))

參數

value
ReadOnlySpan<Byte>

要寫入的值。

例外狀況

寫入新值,已超過父資料項目的明確長度。

-或-

在父資料項目中,不允許已編碼值的主要類型。

-或-

在目前的一致性模式中不接受寫入的資料。

適用於