src/object-model/xyo-structure.ts
Function encode
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static encode(schema: XyoSchema, value: XyoBuffer): XyoBuffer {
const bestSize = XyoSizeUtil.getBestSize(value.getSize())
const header = Buffer.alloc(2 + bestSize.valueOf())
const size = value.getSize() + bestSize.valueOf()
const optimizedSchema = XyoSchema.create(