Wiki source for vmPathSize
======**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://
See iPhone
**iPhone**
strlen([gDelegateApp.squeakApplication getVMPath]) + 1
precomposedStringWithCanonicalMapping 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?
**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://
See iPhone
**iPhone**
strlen([gDelegateApp.squeakApplication getVMPath]) + 1
precomposedStringWithCanonicalMapping 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?