元編程參考文件

可變位元組陣列構建器

25 個節點

本頁內容 25

可變位元組陣列構建器

函數

Creates a new mutable constructive byte array.

過載 1/2

簽名
可變位元組陣列構建器() -> Mutable Constructive Byte Array
MutableConstructiveByteArray MutableConstructiveByteArray()

返回

可變位元組陣列構建器Mutable Constructive Byte Array

過載 2/2

簽名
可變位元組陣列構建器 -> Mutable Constructive Byte Array
    位元組序: Byte Array Endianness
    文字編碼: Encoding
MutableConstructiveByteArray MutableConstructiveByteArray(
    ByteArrayEndianness endianness,
    Encoding stringEncoding)

參數

名稱型別預設值說明
位元組序Byte Array Endianness—
文字編碼Encoding—

返回

可變位元組陣列構建器Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

清空

函數

Clears the current bytes.

簽名
清空(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> Mutable Constructive Byte Array
MutableConstructiveByteArray Clear(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

釋放

函數

Disposes this mutable buffer.

簽名
釋放(Mutable Constructive Byte Array: Mutable Constructive Byte Array)
void Dispose(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

位元組序

函數

Gets the byte order used by numeric write operations.

簽名
位元組序(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> Byte Array Endianness
ByteArrayEndianness Endianness(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果Byte Array Endianness
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

是否為空

函數

Gets whether this buffer contains no bytes.

簽名
是否為空(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> 真否
bool IsEmpty(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

長度

函數

Gets the number of bytes currently written.

簽名
長度(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> 整數
int Length(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

文字編碼

函數

Gets the encoding used by string write operations.

簽名
文字編碼(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> Encoding
Encoding StringEncoding(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果Encoding
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

儲存

函數

Saves the current bytes to a file.

簽名
儲存 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    路徑: 文字
MutableConstructiveByteArray Save(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    string path)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
路徑文字—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

轉為陣列

函數

Returns a copy of the current bytes.

簽名
轉為陣列(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> 位元組陣列
byte[] ToArray(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果位元組陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

轉為不可變位元組陣列

函數

Converts this mutable buffer to an immutable constructive byte array.

簽名
轉為不可變位元組陣列(Mutable Constructive Byte Array: Mutable Constructive Byte Array) -> Output Buffer
ImmutableConstructiveByteArray ToImmutableConstructiveByteArray(MutableConstructiveByteArray Mutable Constructive Byte Array)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—

返回

結果Output Buffer
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入真否

函數

寫入一個真否值,佔一個位元組。

簽名
寫入真否 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 真否
MutableConstructiveByteArray WriteBool(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    bool value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值真否—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入位元組

函數

寫入一個位元組。

簽名
寫入位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 位元組
MutableConstructiveByteArray WriteByte(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    byte value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值位元組—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入多個位元組

函數

過載 1/5

簽名
寫入多個位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    數量: 整數
MutableConstructiveByteArray WriteBytes(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    int count)

Writes empty zero padding.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
數量整數—

返回

結果Mutable Constructive Byte Array

過載 2/5

簽名
寫入多個位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    數量: 整數
    子塊: Action<Mutable Constructive Byte Array>
MutableConstructiveByteArray WriteBytes(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    int count,
    Action<MutableConstructiveByteArray> subblock)

Writes a fixed-size subblock. The continuation writes into the subblock, which is then padded with zeroes up to Count.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
數量整數—
子塊Action<Mutable Constructive Byte Array>—

返回

結果Mutable Constructive Byte Array

過載 3/5

簽名
寫入多個位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    源: Mutable Constructive Byte Array
MutableConstructiveByteArray WriteBytes(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    MutableConstructiveByteArray source)

Appends another mutable constructive byte array.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
源Mutable Constructive Byte Array—

返回

結果Mutable Constructive Byte Array

過載 4/5

簽名
寫入多個位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    源: Output Buffer
MutableConstructiveByteArray WriteBytes(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    ImmutableConstructiveByteArray source)

Appends an immutable constructive byte array.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
源Output Buffer—

返回

結果Mutable Constructive Byte Array

過載 5/5

簽名
寫入多個位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    源: 位元組陣列
MutableConstructiveByteArray WriteBytes(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    byte[] source)

Appends raw bytes.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
源位元組陣列—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入數字

函數

寫入一個 64 位浮點數。

簽名
寫入數字 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 數字
MutableConstructiveByteArray WriteDouble(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    double value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值數字—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入低精度數字

函數

寫入一個 32 位浮點數。

簽名
寫入低精度數字 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 低精度數字
MutableConstructiveByteArray WriteFloat(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    float value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值低精度數字—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入 GUID

函數

按 Guid.ToByteArray() 在執行時的位元組表示寫入一個 GUID。

簽名
寫入 GUID -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: Guid
MutableConstructiveByteArray WriteGuid(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    Guid value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值Guid—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入整數

函數

寫入一個 32 位有符號整數。

簽名
寫入整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 整數
MutableConstructiveByteArray WriteInt(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    int value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入大整數

函數

寫入一個 64 位有符號整數。

簽名
寫入大整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 大整數
MutableConstructiveByteArray WriteLong(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    long value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值大整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入有符號位元組

函數

寫入一個有符號位元組。

簽名
寫入有符號位元組 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: SByte
MutableConstructiveByteArray WriteSByte(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    sbyte value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值SByte—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入小整數

函數

寫入一個 16 位有符號整數。

簽名
寫入小整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 小整數
MutableConstructiveByteArray WriteShort(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    short value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值小整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入定長文字

函數

過載 1/2

簽名
寫入定長文字 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 文字
MutableConstructiveByteArray WriteStringFixedSize(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    string value)

Writes a fixed-size string using exactly the encoded byte count of Value.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值文字—

返回

結果Mutable Constructive Byte Array

過載 2/2

簽名
寫入定長文字 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 文字
    大小: 整數
MutableConstructiveByteArray WriteStringFixedSize(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    string value,
    int size)

Writes a fixed-size string padded with zeroes to Size bytes.

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值文字—
大小整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入以零結尾的文字

函數

Writes a zero-terminated string.

簽名
寫入以零結尾的文字 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 文字
MutableConstructiveByteArray WriteStringZeroTerminated(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    string value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值文字—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入正整數

函數

寫入一個 32 位無符號整數。

簽名
寫入正整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 正整數
MutableConstructiveByteArray WriteUInt(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    uint value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值正整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入大正整數

函數

寫入一個 64 位無符號整數。

簽名
寫入大正整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 大正整數
MutableConstructiveByteArray WriteULong(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    ulong value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值大正整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺

寫入小正整數

函數

寫入一個 16 位無符號整數。

簽名
寫入小正整數 -> Mutable Constructive Byte Array
    Mutable Constructive Byte Array: Mutable Constructive Byte Array
    值: 小正整數
MutableConstructiveByteArray WriteUShort(
    MutableConstructiveByteArray Mutable Constructive Byte Array,
    ushort value)

參數

名稱型別預設值說明
Mutable Constructive Byte ArrayMutable Constructive Byte Array—
值小正整數—

返回

結果Mutable Constructive Byte Array
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
可變位元組陣列構建器
所屬包
平臺