You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
TheXpert:
I need a normal array without copying
The way is to screw with the array structure. I.e. slip a timeseries pointer instead of an array pointer, along with adequate parameters, so the structure thinks it's ok.
aha, got it!
and then pull a structure instead of an array reference across functions...
the structure is sort of detached from the array, but you can still get data from
ArrayStore::double x[];
now all that's left is to take off :)
Can you get a perspective? Theoretically, the same thing can be done to anything, including objects.
I wouldn't advise you to get a perspective. :))
I sat with your problem for a while, and something cleared up.
first two bytes are array type (int).
second two bytes - unclear.
the third two - number of bytes in the data element (int)
// int x[][15]; // == 0x5200 0100 0400 // здесь в каментах - первые три пары байт структуры
// uint x[][15]; // == 0x5300 0100 0400
// short x[][15]; // == 0x5000 0100 0200
// ushort x[][15]; // == 0x4F00 0100 0200
// char x[][15]; // == 0x4D00 0100 0100
// uchar x[][15]; // == 0x4E00 0100 0100
// long x[][15]; // == 0x5500 0100 0800
// ulong x[][15]; // == 0x5600 0100 0800
// double x[][15]; // == 0x5800 0100 0800
// datetime x[][15];// == 0x5400 0100 0800
Then there's four [ulong][ulong][ulong][ulong][ulong] in a row.
then the size of the reserved buffer.
and then a buffer pointer (haven't checked yet).
the rest is unclear, maybe a reserve but not for sure
Yeah. But that's if you exclude memcpy
before that, it's worth checking if internal array copying is faster than memcpy at all
I sat with your problem for a while, something cleared up.
Yeah. But that's if you exclude memcpy
before that, it's worth checking if internal array copying is faster than memcpy at all
MetaDriver:
further confusion, possibly a reserve, but not a certainty