public final class FILE
extends org.moe.natj.c.StructObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
FILE.Function__close |
static interface |
FILE.Function__read |
static interface |
FILE.Function__seek |
static interface |
FILE.Function__write |
| Modifier | Constructor and Description |
|---|---|
|
FILE() |
protected |
FILE(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
__sbuf |
_bf()
the buffer (at least 1 byte, if !NULL)
|
int |
_blksize()
stat.st_blksize (may be != _bf._size)
|
FILE.Function__close |
_close() |
org.moe.natj.general.ptr.VoidPtr |
_cookie()
cookie passed to io functions
|
org.moe.natj.general.ptr.VoidPtr |
_extra()
additions to FILE to not break ABI
|
short |
_file()
fileno, if Unix descriptor, else -1
|
short |
_flags()
flags, below; this FILE is free if 0
|
__sbuf |
_lb()
buffer for fgetln()
|
int |
_lbfsize()
0 or -_bf._size, for inline putc
|
byte |
_nbuf()
guarantee a getc() buffer
|
long |
_offset()
current lseek offset (see WARNING)
|
org.moe.natj.general.ptr.BytePtr |
_p()
current position in (some) buffer
|
int |
_r()
read space left for getc()
|
FILE.Function__read |
_read() |
FILE.Function__seek |
_seek() |
__sbuf |
_ub()
ungetc buffer
|
byte |
_ubuf(int field_idx)
guarantee an ungetc() buffer
|
int |
_ur()
saved _r when _r is counting ungetc data
|
int |
_w()
write space left for putc()
|
FILE.Function__write |
_write() |
void |
set_bf(__sbuf value)
the buffer (at least 1 byte, if !NULL)
|
void |
set_blksize(int value)
stat.st_blksize (may be != _bf._size)
|
void |
set_close(FILE.Function__close value) |
void |
set_cookie(org.moe.natj.general.ptr.VoidPtr value)
cookie passed to io functions
|
void |
set_extra(org.moe.natj.general.ptr.VoidPtr value)
additions to FILE to not break ABI
|
void |
set_file(short value)
fileno, if Unix descriptor, else -1
|
void |
set_flags(short value)
flags, below; this FILE is free if 0
|
void |
set_lb(__sbuf value)
buffer for fgetln()
|
void |
set_lbfsize(int value)
0 or -_bf._size, for inline putc
|
void |
set_nbuf(byte value)
guarantee a getc() buffer
|
void |
set_offset(long value)
current lseek offset (see WARNING)
|
void |
set_p(org.moe.natj.general.ptr.BytePtr value)
current position in (some) buffer
|
void |
set_r(int value)
read space left for getc()
|
void |
set_read(FILE.Function__read value) |
void |
set_seek(FILE.Function__seek value) |
void |
set_ub(__sbuf value)
ungetc buffer
|
void |
set_ubuf(byte value,
int field_idx)
guarantee an ungetc() buffer
|
void |
set_ur(int value)
saved _r when _r is counting ungetc data
|
void |
set_w(int value)
write space left for putc()
|
void |
set_write(FILE.Function__write value) |
public org.moe.natj.general.ptr.BytePtr _p()
public void set_p(org.moe.natj.general.ptr.BytePtr value)
public int _r()
public void set_r(int value)
public int _w()
public void set_w(int value)
public short _flags()
public void set_flags(short value)
public short _file()
public void set_file(short value)
public __sbuf _bf()
public void set_bf(__sbuf value)
public int _lbfsize()
public void set_lbfsize(int value)
public org.moe.natj.general.ptr.VoidPtr _cookie()
public void set_cookie(org.moe.natj.general.ptr.VoidPtr value)
public FILE.Function__close _close()
public void set_close(FILE.Function__close value)
public FILE.Function__read _read()
public void set_read(FILE.Function__read value)
public FILE.Function__seek _seek()
public void set_seek(FILE.Function__seek value)
public FILE.Function__write _write()
public void set_write(FILE.Function__write value)
public __sbuf _ub()
public void set_ub(__sbuf value)
public org.moe.natj.general.ptr.VoidPtr _extra()
public void set_extra(org.moe.natj.general.ptr.VoidPtr value)
public int _ur()
public void set_ur(int value)
public byte _ubuf(int field_idx)
public void set_ubuf(byte value,
int field_idx)
public byte _nbuf()
public void set_nbuf(byte value)
public __sbuf _lb()
public void set_lb(__sbuf value)
public int _blksize()
public void set_blksize(int value)
public long _offset()
public void set_offset(long value)