Wiki source for vmPathSize

Show raw source

======**sqInt vmPathSize(void)**======

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

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

Does strlen on getVMPathWithEncoding results

See iPhone

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

return strlen of vmPath, no encoding

return lstrlen of vmPath, no encoding

Disagreement about encoding?
? Unsure on os-x or unix is trailing '/' returned?
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki