誰かが私がやろうとしていたことに特定の用語を付けることができれば、私はまだそれを聞きたいです。しかし、私は必要なことを行う方法を見つけました。誰かが私の面倒を見てくれるように、ここに投稿します。それを行うためのより簡単で直接的な方法があるかもしれませんが(おそらくそうです)、私が望んでいたバイトコードを取り戻すためにVB.Netでやったことは次のとおりです。
Private Function Encode(ByVal original As Integer) as Byte()
Dim twofiftysixes As Integer = CInt(Math.Floor(original / 256))
Dim sixteens As Integer = CInt(Math.Floor((original - (256 * twofiftysixes)) / 16))
Dim ones As Integer = original Mod 16
Dim bytecode As Byte() = {CByte((16 * sixteens) + ones), CByte(twofiftysixes), 0, 0}
Return bytecode
End Function
整数を効果的に16進コンポーネントに分割し、適切なペアをcBytesに変換します。