Looks like the RIM API has some checksum calculators built within it - perhaps one of these is doing the dirty work; from:
http://www.blackberry.com/DevMediaLi...w.do?name=java
we have:
Quote:
CRC16 - class net.rim.device.api.util.CRC16.
Computes the 16-bit CRC (checksum) for a data stream. CRC24 - class net.rim.device.api.util.CRC24.
A class that can be used to compute a 24-bit CRC of a data stream. CRC32 - class net.rim.device.api.util.CRC32.
Computes the 32-bit CRC (checksum) for a data stream.
|
About the VSM construction, does this stuff look promising for understanding the skeletal outline of what fills the header info that adjoins the resource_data in VSM files? From:
http://www.blackberry.com/developers...rceBundle.html Quote:
Constructor Detail
CompiledResourceBundle
protected CompiledResourceBundle(Locale locale,
long bundleId,
int[] ids,
short[] offsets,
byte[] data)
Constructs new CompilerdResourceBundle instance.
Invoked only from classes output by the resource compiler.
Parameters:
locale - Locale for this bunndle. {sic}
bundledId {sic} - Identifier number for this bundle.
ids - List of resource IDs for the resources in this bundle.
offsets - List of offsets marking start of each resource in this bundle.
data - Byte array containing the resource data for this bundle.
|
The 4.5 API listing at:
http://www.blackberry.com/developers...index-all.html
speaks a little of "resource bundle" and the like.