• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

benrr101 / node-taglib-sharp / 48391054

29 Oct 2023 04:39AM UTC coverage: 92.535% (-1.4%) from 93.934%
48391054

push

appveyor

benrr101
Merge branch 'release/v5.2.0'

3244 of 4129 branches covered (0.0%)

Branch coverage included in aggregate %.

2177 of 2177 new or added lines in 61 files covered. (100.0%)

26728 of 28261 relevant lines covered (94.58%)

423.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.33
/src/mpeg4/boxes/isoUserDataBox.ts
1
import Mpeg4Box from "./mpeg4Box";
1✔
2
import Mpeg4BoxHeader from "../mpeg4BoxHeader";
3
import Mpeg4BoxType from "../mpeg4BoxType";
1✔
4
import {ByteVector} from "../../byteVector";
5

6
/**
7
 * This class extends {@link Mpeg4Box} to provide an implementation of a ISO/IEC 14496-12 UserDataBox.
8
 */
9
export default class IsoUserDataBox extends Mpeg4Box {
1✔
10
    private _parentTree: Mpeg4BoxHeader[];
11

12
    /**
13
     * Private constructor to force construction via static functions.
14
     */
15
    private constructor() {
16
        super();
113✔
17
    }
18

19
    /**
20
     * Constructs and initializes a new instance of {@link IsoUserDataBox} with a provided header and
21
     * handler by reading the contents from a specified file.
22
     * @param header A {@link Mpeg4BoxHeader} object containing the header to use for the new instance.
23
     * @param handlerType Type of the handler box object containing the handler that applies to the
24
     *     new instance, or undefined if no handler applies.
25
     */
26
    public static fromHeader(header: Mpeg4BoxHeader, handlerType: ByteVector): IsoUserDataBox {
27
        const instance = new IsoUserDataBox();
×
28
        instance.initializeFromHeader(header, handlerType);
×
29

30
        return instance;
×
31
    }
32

33
    /**
34
     * Constructs and initializes a new instance of @see IsoUserDataBox with no children.
35
     */
36
    public static fromEmpty(): IsoUserDataBox {
37
        const instance = new IsoUserDataBox();
113✔
38
        instance.initializeFromType(Mpeg4BoxType.UDTA);
113✔
39

40
        return instance;
113✔
41
    }
42

43
    /**
44
     * Gets the box headers for the current "udta" box and all parent boxes up to the top of the file.
45
     * @remarks Changes to the returned object will not be honored. Set the property to change it.
46
     */
47
    public get parentTree(): Mpeg4BoxHeader[] { return this._parentTree.slice(); }
×
48
    /**
49
     * Sets the box headers for the current "udta" box and all parent boxes up to the top of the file.
50
     * @internal
51
     */
52
    public set parentTree(v: Mpeg4BoxHeader[]) { this._parentTree = v; }
×
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc