PayloadLen is a function that calculates the length of the payload.
()
| 615 | |
| 616 | // PayloadLen is a function that calculates the length of the payload. |
| 617 | func (p preludeInfo) PayloadLen() int64 { |
| 618 | return int64(p.totalLen - p.headerLen - 16) |
| 619 | } |
| 620 | |
| 621 | // processPrelude is the function that reads the 12 bytes of the prelude and |
| 622 | // ensures the CRC is correct while also extracting relevant information into |