binary storage in same file?
Posted: Thu Aug 12, 2004 9:54 am
In PowerBASIC i can obtain data using a lable and using CodePtr( mylabel ) like:
MyLabel:
!db 2,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
etc...
With the above i only need to remember it's size.
Can i make use of db statements in PureBasic in a similar way?
1) db statements results in the smallest not-encoded code.
2) Need to have direct access using a pointer to mylabel or so.
3) Would not like to use a method like T.s = T.s & "abcd"...
4) The size can become really big, like megabytes, to handle?
5) Don't want to use includebinary since then i'll need a separate file.
Thanks,
MyLabel:
!db 2,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
etc...
With the above i only need to remember it's size.
Can i make use of db statements in PureBasic in a similar way?
1) db statements results in the smallest not-encoded code.
2) Need to have direct access using a pointer to mylabel or so.
3) Would not like to use a method like T.s = T.s & "abcd"...
4) The size can become really big, like megabytes, to handle?
5) Don't want to use includebinary since then i'll need a separate file.
Thanks,