| 6429 | } |
| 6430 | |
| 6431 | function makeTableRecord(tag, checkSum, offset, length) { |
| 6432 | return new table.Table('Table Record', [ |
| 6433 | {name: 'tag', type: 'TAG', value: tag !== undefined ? tag : ''}, |
| 6434 | {name: 'checkSum', type: 'ULONG', value: checkSum !== undefined ? checkSum : 0}, |
| 6435 | {name: 'offset', type: 'ULONG', value: offset !== undefined ? offset : 0}, |
| 6436 | {name: 'length', type: 'ULONG', value: length !== undefined ? length : 0} |
| 6437 | ]); |
| 6438 | } |
| 6439 | |
| 6440 | function makeSfntTable(tables) { |
| 6441 | var sfnt = new table.Table('sfnt', [ |