Hello all,

First time posting on the forums. I come from primarily a Python background and 
Nim has been a dream to work in so far. However, I'm implementing a pcapng 
parser in pure Nim, and I was attempting to write my own little endian stream 
handler. Along this path, I went about reading the source code for 
`streams.nim`, and I couldn't find a definition for `getFilePos` anywhere. I 
hope this is a dumb question and that I'm overlooking something because it 
bugged me enough that I felt like I should ask someone lol.

Precisely, the code block in question where I found it is in `streams.nim` line 
1318:
    
    
    proc fsClose(s: Stream) =
      if FileStream(s).f != nil:
        close(FileStream(s).f)
        FileStream(s).f = nil
    proc fsFlush(s: Stream) = flushFile(FileStream(s).f)
    proc fsAtEnd(s: Stream): bool = return endOfFile(FileStream(s).f)
    proc fsSetPosition(s: Stream, pos: int) = setFilePos(FileStream(s).f, pos)
    proc fsGetPosition(s: Stream): int = return 
int(getFilePos(FileStream(s).f))   # getFilePos here is not defined anywhere in 
imports or in file
    
    
    Run

Is `getFilePos` a default Nim function? If not, where is it defined?

Reply via email to