■61415 / inTopicNo.3) |
Re[2]: Long(string)形をByte一次元配列に変更 |
□投稿者/ shu (939回)-(2011/08/11(Thu) 23:01:50)
|
一応、 MemoryStream + BinaryWriterの例
Dim mem As New MemoryStream()
Dim wt As New BinaryWriter(mem, Encoding.UTF8)
wt.Write(10000000000&)
wt.Write(100000)
wt.Write("あいうえお")
wt.Close()
Dim bytes = mem.ToArray
For Each dt In bytes
Console.Write("{0:X2} ", dt)
Next
Console.WriteLine()
mem.Dispose()
|
|