Mata read/writes via bufio seem to be limited to under 2^31 bytes at a time (largest signed integer). Is this a bug or a limitation of reading/writing matrices? Apologies if I missed the docs for the latter. Simple example:
The second fbufput gives
Code:
mata C = bufio() fn = st_tempfilename() fh = fopen(fn, "w") fbufput(C, fh, "%8z", runiform(((2^31)/8)-1, 1)) fbufput(C, fh, "%8z", runiform(((2^31)/8), 1)) fclose(fh) unlink(fn) end
Code:
bufput(): 3300 argument out of range fbufput(): - function returned error <istmt>: - function returned error r(3300);
Comment