INNER CODE UNIT · TypeScript

FullMsgLength

serialport/node-serialport · packages/parser-cctalk/lib/index.ts:41

      const FullMsgLength = this.array[1] + 5

      const frame = Buffer.from(this.array.slice(0, FullMsgLength))
      // Preserve Extra Data
      this.array = this.array.slice(frame.length, this.array.length)
      this.cursor -= FullMsgLength
      this.push(frame)
    }
    cb()
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…