Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 424fa81170
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.585 kB
class Table
constructor: (@file, @tag) ->
@tag ?= @constructor.name.replace('Table', '').toLowerCase()
info = @file.directory.tables[@tag]
@exists = !!info
if info
{@offset, @length} = info
@parse @file.contents
parse: ->
# implemented by subclasses
encode: ->
# implemented by subclasses
raw: ->
return null unless @exists
@file.contents.pos = @offset
@file.contents.read @length
module.exports = Table
Jump to Line
Something went wrong with that request. Please try again.