[Win32utils-devel] Fwd: FFI::MemoryPointer.read_wide_string?

Heesob Park phasis at gmail.com
Mon Nov 11 15:14:34 UTC 2013


Hi,

2013/11/12 Daniel Berger <djberg96 at gmail.com>:
> Resend due to mailing list issue.
>
> ---------- Forwarded message ----------
> From: Daniel Berger <djberg96 at gmail.com>
> Date: Thu, Nov 7, 2013 at 12:44 AM
> Subject: FFI::MemoryPointer.read_wide_string?
> To: Development and ideas for win32utils projects
> <win32utils-devel at rubyforge.org>
>
>
> Hi all,
>
> Currently the FFI::MemoryPointer#read_string reads up until the first null
> byte. But with wide strings I need to read up until the first two
> consecutive null bytes.
>
> Would it make sense and be useful to add a read_wide_string method that did
> that?
>
I think read_string_with_enc(string,encoding) is more useful.

Regards,
Park Heesob


More information about the win32utils-devel mailing list