Unpack wchar from pointer

[email protected] ("Oleg V. Volkov")
Newsgroups perl.unicode
Message-ID <[email protected]>
Greetings.

I'm writing pure Perl module that works with Win32 *W functions and,
naturally, they return pointers to wchars. I can't use unpack with 'p'
because it terminates on first 0, which happens at first symbol
from 0-255 range, instead at end of string. Right now I just
unpack two bytes from memory inside while{ } and shift pointer
until I reach two 0's, but is there better/faster way to do that,
without using XS?

-- 
Oleg "Rowaa[SR13]" V. Volkov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.