in reply to Re^50: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly
(You still haven't demonstrated how you can get those four to exist with only two string types)
You know that +1 and the assigned \0 in your code, don't allocate +1 and don't put \0 and there you go.
The \0 is not required, but much XS assume it's there.
Read as: If sv contains the character string "\x80\x81",
I don't understand. How is calling a byte string a character string useful? Why would you do that? It's not technically wrong, but it's definitely not clearer.
I realize that C calls both bytes and characters char, but I don't think that's something to aspire to.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^52: Interleaving bytes in a string quickly
by BrowserUk (Patriarch) on Mar 03, 2010 at 10:12 UTC | |
by ikegami (Patriarch) on Mar 03, 2010 at 15:21 UTC | |
by Anonymous Monk on Mar 03, 2010 at 16:01 UTC | |
by ikegami (Patriarch) on Mar 03, 2010 at 18:01 UTC | |
by Anonymous Monk on Mar 03, 2010 at 20:57 UTC | |
| |
by Anonymous Monk on Mar 04, 2010 at 04:54 UTC | |
|