Re: Manipulating binary data





you store it as:

$string = 'abc123xyz';

Which is roughly how a 2-dimensional array is internally stored by a C
program.


As I said I've tried that, however using GD lib is actually 30-40%
faster then manipulating a string

"I figured the best way to do it would be to just "allocate" a memory
space of $width * $height bytes and copy the image into that, which I
guess is done by creating a string of that length. However even just
plotting to $string[$n++]=chr($val) (no co-ord calculations) is slower
then imagesetpixel() on an 8-bit image"

.



Relevant Pages

  • Re: Proper modularization technique
    ... will generate a string to be used by the calling routine. ... Should I set aside an array in the calling routine and have the ... the function might need to store more characters than the array ...
    (comp.lang.c)
  • Re: Data From CREATEOBJECT
    ... the first column and the "key" in the second. ... The array is public so that all of the objects can find it and the main program can find all of the objects. ... So there is no need to store it once more in the array. ... If it is a variable set of properties, then it might be better to build a long string of the property names and the respective values and store this string in a memo field. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: what is the best datatype for..
    ... If you are only going to store it, then use a string. ... each value in the array, check to see if it already exists in the ... If it does, then just increment the count, otherwise, add ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is there such a thing as dynamic arrays in classic rexx?
    ... my program but now I have a need for a dynamic array. ... String length of 0000006A000005F2 is 16 ... just store the word-numbers elsewhere. ...
    (comp.lang.rexx)
  • Re: some bit math help
    ... >> settings as a VB string. ... > I would suggest you store it as a byte array, ...
    (microsoft.public.vb.general.discussion)