PageRenderTime 61ms CodeModel.GetById 20ms app.highlight 0ms RepoModel.GetById 40ms app.codeStats 0ms

/freeimage/IOHandler.ooc

http://github.com/tsion/ooc-freeimage
Unknown | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 24f75b1523d38939acf1591f019c01e4 MD5 | raw file
 1use freeimage
 2import io/FileReader
 3
 4IOHandler: cover from FreeImageIO {
 5    read_proc:  extern Func (Pointer, UInt, UInt, FStream) -> UInt
 6    write_proc: extern Func (Pointer, UInt, UInt, FStream) -> UInt
 7    seek_proc:  extern Func (FStream, Long, Int) -> Int
 8    tell_proc:  extern Func (FStream) -> Long
 9
10    init: func@ (=read_proc, =write_proc, =seek_proc, =tell_proc) {}
11}