[NF] Implemented method getFileContextOffset.