You can try this to create a new empty byte array with 100 bytes:
$byte = New-Object Byte[] 100
Try this if you need to create a byte array with a default value other than 0:
$byte = [Byte[]] (,0xFF * 100)
You can try this to create a new empty byte array with 100 bytes:
$byte = New-Object Byte[] 100
Try this if you need to create a byte array with a default value other than 0:
$byte = [Byte[]] (,0xFF * 100)