def u16toeuc() Iconv.iconv_to_from("EUC-JP", "UTF-16", self) end
def u16tosjis() Iconv.iconv_to_from("Shift_JIS", "UTF-16", self) end
-
- def u32to_i
- return 0 if length == 0
- s = self
-# return (s[3] << 24 | s[2] << 16 | s[1] << 8 | s[0])
- return (s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3])
- end
end