In addition to using files, Common Graphics allows images and icons to be loaded and unloaded using ByteArrays. The
totalSizeBeforeUnload: method determines the number of bytes required to unload the image. The
unload:intoByteObjects:offsetsIntoByteObjects: method, which does the actual unloading, takes an array of
ByteArrays and an array of
Integer offsets. The offsets specify how many bytes to skip at the beginning of each
ByteArray. The offsets can be used, for example, to leave room for database record headers. As with
unload:intoFile:,
true is answered if the unload was successful,
false if an error occurred.