develooper Front page | perl.perl6.users | Postings from January 2020

Re: stolen uint's

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
January 29, 2020 19:01
Subject:
Re: stolen uint's
Message ID:
acc239c1-9a4c-bc3b-9560-62b06f4acfb8@zoho.com
On 2020-01-29 06:34, Trey Harris wrote:
> I was going to ask about that (but it seemed out of Raku-world, and I 
> don’t even play someone who knows about Windows on TV), but, okay, I’ll 
> bite... what are some examples of the precisely 3-byte + 32-bit null UTF 
> strings you imagine being encoded by this interface? I have never heard 
> of such a small fixed-width UTF data structure before because it’s just 
> so bizarre, and then mandating a null termination so you lose the 4th 
> byte that would make this structure at least somewhat coherent as a 
> UCS-4 codepoint... since there’s no such thing as UTF-24, I assume this 
> is three UTF-8 bytes packed (which I guess is what you mean by “little 
> endian C string”, but that becomes at best ill-defined abutted next to 
> “UTF”)... But, what on earth is it being used for?
> 
> I’m fascinated, in the way a cat is fascinated by a snake....

Trey,

You are basically setting up a buffer of bytes
and then telling the WinAPI how long the
data in the buffer is as well as what type of
data the buffer contains.

-T

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About