abstract class FlatText
super Text
- # Underlying C-String (`char*`)
+ # Underlying CString (`char*`)
#
- # Warning : Might be void in some subclasses, be sure to check
+ # Warning: Might be void in some subclasses, be sure to check
# if set before using it.
var items: CString is noinit
end
end
-# Native strings are simple C char *
+# C string `char *`
+#
+# Used as underlying implementation for `String` and some other `Text`.
extern class CString `{ char* `}
- # Creates a new CString with a capacity of `length`
+ # Create a new `CString` with the capacity for `length` characters
new(length: Int) is intern
- # Returns a char* starting at `index`.
+ # Get a char* starting at `index`.
#
# WARNING: Unsafe for extern code, use only for temporary
# pointer manipulation purposes (e.g. write to file or such)