Package apple.struct

Class FILE


  • public final class FILE
    extends org.moe.natj.c.StructObject
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        FILE()  
      protected FILE​(org.moe.natj.general.Pointer peer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      __sbuf _bf()
      the buffer (at least 1 byte, if !
      int _blksize()
      stat.st_blksize (may be !
      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.
      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 !
      void set_blksize​(int value)
      stat.st_blksize (may be !
      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.
      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)  
      • Methods inherited from class org.moe.natj.general.NativeObject

        finalize, getPeer, getPeerPointer
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FILE

        public FILE()
      • FILE

        protected FILE​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • _p

        public org.moe.natj.general.ptr.BytePtr _p()
        current position in (some) buffer
      • set_p

        public void set_p​(org.moe.natj.general.ptr.BytePtr value)
        current position in (some) buffer
      • _r

        public int _r()
        read space left for getc()
      • set_r

        public void set_r​(int value)
        read space left for getc()
      • _w

        public int _w()
        write space left for putc()
      • set_w

        public void set_w​(int value)
        write space left for putc()
      • _flags

        public short _flags()
        flags, below; this FILE is free if 0
      • set_flags

        public void set_flags​(short value)
        flags, below; this FILE is free if 0
      • _file

        public short _file()
        fileno, if Unix descriptor, else -1
      • set_file

        public void set_file​(short value)
        fileno, if Unix descriptor, else -1
      • _bf

        public __sbuf _bf()
        the buffer (at least 1 byte, if !NULL)
      • set_bf

        public void set_bf​(__sbuf value)
        the buffer (at least 1 byte, if !NULL)
      • _lbfsize

        public int _lbfsize()
        0 or -_bf._size, for inline putc
      • set_lbfsize

        public void set_lbfsize​(int value)
        0 or -_bf._size, for inline putc
      • _cookie

        public org.moe.natj.general.ptr.VoidPtr _cookie()
        cookie passed to io functions
      • set_cookie

        public void set_cookie​(org.moe.natj.general.ptr.VoidPtr value)
        cookie passed to io functions
      • _ub

        public __sbuf _ub()
        ungetc buffer
      • set_ub

        public void set_ub​(__sbuf value)
        ungetc buffer
      • _extra

        public org.moe.natj.general.ptr.VoidPtr _extra()
        additions to FILE to not break ABI
      • set_extra

        public void set_extra​(org.moe.natj.general.ptr.VoidPtr value)
        additions to FILE to not break ABI
      • _ur

        public int _ur()
        saved _r when _r is counting ungetc data
      • set_ur

        public void set_ur​(int value)
        saved _r when _r is counting ungetc data
      • _ubuf

        public byte _ubuf​(int field_idx)
        guarantee an ungetc() buffer
      • set_ubuf

        public void set_ubuf​(byte value,
                             int field_idx)
        guarantee an ungetc() buffer
      • _nbuf

        public byte _nbuf()
        guarantee a getc() buffer
      • set_nbuf

        public void set_nbuf​(byte value)
        guarantee a getc() buffer
      • _lb

        public __sbuf _lb()
        buffer for fgetln()
      • set_lb

        public void set_lb​(__sbuf value)
        buffer for fgetln()
      • _blksize

        public int _blksize()
        stat.st_blksize (may be != _bf._size)
      • set_blksize

        public void set_blksize​(int value)
        stat.st_blksize (may be != _bf._size)
      • _offset

        public long _offset()
        current lseek offset (see WARNING)
      • set_offset

        public void set_offset​(long value)
        current lseek offset (see WARNING)