バイト配列間のコピー
次のコード例は、ユニバーサル Windows プラットフォーム (UWP) アプリでバイト配列をコピーする方法を示しています。
public void ByteArrayCopy()
{
// Initialize a byte array.
byte[] bytes = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
// Create a buffer from the byte array.
IBuffer buffer = CryptographicBuffer.CreateFromByteArray(bytes);
// Encode the buffer into a hexadecimal string (for display);
string hex = CryptographicBuffer.EncodeToHexString(buffer);
// Copy the buffer back into a new byte array.
byte[] newByteArray;
CryptographicBuffer.CopyToByteArray(buffer, out newByteArray);
}
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示