iSqueak Wikki : vmPathSize

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

sqInt vmPathSize(void)


Parms: NONE
return: size of vm path in bytes
From: Interpreter primitiveVMPath
Why:
Need to know size of vm name path

Responsibility:
Return bytes needed to store the vm path (Directory) in as a Class String.

MacIntosh
os-9/OSXCarbon
Does strlen on getVMPathWithEncoding results

Cocoa:
TBD

iPhone
strlen([gDelegateApp.squeakApplication getVMPath]) + 1
UTF8String, directories don't have the trailing '/' so we add 1 byte to account for that

Unix
return strlen of vmPath, no encoding

Windows
return lstrlen of vmPath, no encoding

BUGS
VMPATH_SIZE is not MAX_PATH
Disagreement about encoding?
? Unsure on os-x or unix is trailing '/' returned?

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0429 seconds