All files / src/types/kmx/kmx-plus-builder build-sect.ts

70.96% Statements 22/31
100% Branches 0/0
0% Functions 0/1
70.96% Lines 22/31

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 321x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                    
import { constants } from "@keymanapp/ldml-keyboard-constants";
import { BUILDER_SECTION } from "./builder-section.js";
 
/* ------------------------------------------------------------------
 * sect section
   ------------------------------------------------------------------ */
 
interface BUILDER_SECT_ITEM {
  sect: number;
  offset: number; //? new r.VoidPointer(r.uint32le, {type: 'global'})
};
 
/**
 * Builder for the 'sect' (Section table of contents) section
 */
export interface BUILDER_SECT extends BUILDER_SECTION {
    total: number;
    count: number;
    items: BUILDER_SECT_ITEM[];
  };
 
export function build_sect(): BUILDER_SECT {
  return {
    ident: constants.hex_section_id(constants.section.sect),
    size: 0, // finalized later
    _offset: 0,
    total: 0, // finalized later
    count: 0, // finalized later
    items: [], // finalized later
  };
}