JuliaStrings / InlineStrings.jl

Fixed-width string types for Julia
Other
45 stars 13 forks source link

fix `write` to bswap and use the correct size #83

Closed KristofferC closed 3 months ago

KristofferC commented 3 months ago

Before this, this gave:

str = InlineString("abc")
iob = IOBuffer()
write(iob, str)
String(take!(iob)) == "abc"
# "\x03cba"
KristofferC commented 3 months ago

Actually, I am wrong here..