Get file size in Okteta structure definition

I’m attempting to write an Okteta structure definition for the TGA 2.0 file format, which as well as a header, has a footer. This footer is located at the bottom of the file, and locating it is necessary to locate the other sections of the file. Is there any way to locate the end of the file in the JS structure definition?