in reply to Re^2: I've muddled my bit and byte formats.
in thread I've muddled my bit and byte formats.
You appear to be saying that substr will return the ASCII value represented by the number contained in the selected byte(s) rather than just a sequence of 8 bits I, the computer program, can manipulate how I choose.
substr knows nothing about ASCII. substr returns a portion of the original string
the only way I know how to address that is to grab the byte containing the bit and then try to look inside that.
That is what you must do, But you didn't do that. You still had a string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: I've muddled my bit and byte formats.
by murrayn (Sexton) on Oct 17, 2018 at 05:25 UTC | |
by tybalt89 (Monsignor) on Oct 17, 2018 at 14:47 UTC | |
by murrayn (Sexton) on Oct 18, 2018 at 06:30 UTC | |
by ikegami (Patriarch) on Oct 17, 2018 at 14:47 UTC |