iSqueak Wikki : vmPathSize

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

Revision [434]

Most recent edit made on 2010-09-12 22:52:11 by JohnMcIntosh

Additions:
See iPhone
precomposedStringWithCanonicalMapping UTF8String, directories don't have the trailing '/' so we add 1 byte to account for that


Deletions:
TBD
UTF8String, directories don't have the trailing '/' so we add 1 byte to account for that




Revision [224]

Edited on 2008-10-17 02:49:08 by JohnMcIntosh

No differences.


Revision [223]

The oldest known version of this page was edited on 2008-10-17 02:48:51 by JohnMcIntosh

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?
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0385 seconds