rename `NativeString` to `CString`
[nit.git] / src / interpreter / primitive_types.nit
index 4912404..129d0c6 100644 (file)
@@ -47,14 +47,14 @@ class PrimitiveNativeFile
                return false
        end
 
-       fun io_read(buf: NativeString, len: Int): Int do
+       fun io_read(buf: CString, len: Int): Int do
                if file isa FileStream then return file.as(FileStream)._file.io_read(buf, len)
                var str = file.as(Reader).read(len)
                str.to_cstring.copy_to(buf, str.length, 0, 0)
                return str.length
        end
 
-       fun io_write(buf: NativeString, from, len: Int): Int do
+       fun io_write(buf: CString, from, len: Int): Int do
                if file isa FileStream then return file.as(FileStream)._file.io_write(buf, from, len)
                file.as(Writer).write(buf.to_s_with_length(len).substring_from(from))
                return len