import {AxdrInteger} from "../asn1.axdr/AxdrInteger"; import {Buffer} from "buffer"; export class Unsigned8 extends AxdrInteger{ constructor() { super(); } set_const(){ super.set_min_max_val(0 ,255, 0); } set_dataCode(dataCode : Buffer){ super.set_min_max_val(0 ,255, 0); super.set_dataCode(dataCode); } set_min_max_val(val : number){ super.set_min_max_val(0 ,255, val); } } // console.log(a.length); // let unsigned = new Unsigned8(); // // unsigned.set_min_max_val(20); // console.log(unsigned.getValue()); // unsigned.set_dataCode(DataUtils.toBytes("05")); // if(unsigned.dataCode != null){ // // for(const a of unsigned.dataCode.values()){ // console.log(a) // } // // }