Output binary data on PowerShell pipeline

后端 未结 4 1595
独厮守ぢ
独厮守ぢ 2021-02-13 20:05

I need to pipe some data to a program\'s stdin.

  1. First 4 bytes are a 32 bit unsigned integer representing the length of the data. These 4 bytes are exactly the sam
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 20:51

    [System.Console]::OpenStandardOutput().Write($bytes, 0, $bytes.Length)
    

提交回复
热议问题