OpenSystemsLab/struct.nim

Unexpected Output

qb-0 opened this issue · 0 comments

qb-0 commented

Sorry, it's me again.

nim> import struct
nim> var a = unpack(">3I", "Hello World ")
nim> a
@[1214606444, 1864390511, 1919706144] == type seq[StructNode]
nim> pack(">3I", a)
Horld  == type string

Also it would be a useful feature to pass a seq[int32] to pack.