3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class LockableScore extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.LockableScore_free(this.ptr);
21 public static LockableScore constructor_new(Score score) {
22 number ret = bindings.LockableScore_new(score == null ? 0 : score.ptr);
23 const ret_hu_conv: LockableScore = new LockableScore(null, ret);
24 ret_hu_conv.ptrs_to.add(ret_hu_conv);
25 ret_hu_conv.ptrs_to.add(score);
29 public Uint8Array write() {
30 Uint8Array ret = bindings.LockableScore_write(this.ptr);