Revision [294]

This is an old revision of imageNameGetLength made by JohnMcIntosh on 2008-10-21 03:07:46.

 

sqInt imageNameGetLength(sqInt sqImageNameIndex, sqInt length)


Parms:
sqImageNameIndex pointer to storage for name
length is length of string in bytes, this is pre-calculated by calling imageNameSize in the past.

return: NONE, fake return of zero
From: Interpreter primitiveImageName
Why:
Get image name
Responsibility:
Note if the image security model is used and the image has been setup as non-writeable then the primitive get image name will fail when it checks security and never actually ask the platform code for the image name

MacIntosh
os-9/OSXCarbon
Invoke getImageNameWithEncoding, but then also check length of image name versus length parm for errors.

Cocoa:
TBD

iPhone
strncpy(sqImageName, [self getImageName], length);
where getImageName is the UTF8 string from the URL

Unix
Copy over the imageName upto the size of the imageName or length.

Windows
Copy over the imageName upto the size of the imageName or length.

BUGS
Does the name need to be in platform encoding or not?
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki