/** * file : utils.ts * brief : user function collection. **/ export class Utils { constructor() {} /** * hex --> 2-digit ascii */ public hex2ascii(value: number, size: number): number[] { const arr = [] let str = value.toString(16) if (str.length > size) { throw new Error('ddd') } str = '0'.repeat(size - str.length) + str for (let i = 0, l = str.length; i < l; i++) { const hex = Number(str.char..