i very interessed to to put my part time in nanovm
i would like to begin to add some new function to stringBuffer supported by nanovm
where i need to add the new function?
Have a look at the following files:
vm/src/native_stdio.c: void native_java_lang_stringbuffer_invoke(u08_t mref)
The StringBuffer support is somehow special: Internally a String object and a StringBuffer object are the same - some raw memory on the heap for the content. Each time you append something to a StringBuffer it will allocate a new String(Buffer) for the result.
I am also interested in extending the string class to include methods such as string.lenght & string.charAT. Please post any work you have done on this subject.
I am very new at Java and c for that matter but I have managed to add methods to the Port class.