6 #include "structdefs.h"
10 void ___FileOutputStream______nativeWrite____I__AR_B(int fd, struct ArrayObject * ao) {
11 int length=ao->___length___;
12 char * string= (((char *)& ao->___length___)+sizeof(int));
13 int status=write(fd, string, length);
16 void ___FileOutputStream______nativeClose____I(int fd) {
20 int ___FileOutputStream______nativeOpen_____AR_B(struct ArrayObject * ao) {
21 int length=ao->___length___;
22 char* filename= (((char *)& ao->___length___)+sizeof(int));
23 int fd=open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
27 int ___FileInputStream______nativeOpen_____AR_B(struct ArrayObject * ao) {
28 int length=ao->___length___;
29 char* filename= (((char *)& ao->___length___)+sizeof(int));
30 int fd=open(filename, O_RDONLY, 0);
34 void ___FileInputStream______nativeClose____I(int fd) {
38 int ___FileInputStream______nativeRead____I__AR_B_I(int fd, struct ArrayObject * ao, int numBytes) {
39 int toread=ao->___length___;
40 char* string= (((char *)& ao->___length___)+sizeof(int));
46 status=read(fd, string, toread);