Код: Выделить всё
PS> $data = Read-BinaryData test.bin
PS> $data.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False DataChunk System.Object
Код: Выделить всё
PS> $data.ToString()
07 65 20 AE F6 8D 4F 00 97 A8 33 C9 81 EB 80 AE 92 87 7D 08
Код: Выделить всё
PS> $data
Count
-----
20
Код: Выделить всё
public class DataChunk
{
byte[] data;
public int Count => data.Length;
public override string ToString() { ... }
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... powershell