TinyPPP
PPP networking over any Arduino Stream
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Checksum Class Reference

Internet checksum (RFC 1071) over several (possibly odd sized) pieces. More...

#include <IPStack.h>

Public Member Functions

void add (const uint8_t *p, size_t len)
 Adds data.
 
void add16 (uint16_t v)
 Adds a 16 bit value.
 
uint16_t result () const
 The checksum of all added data.
 

Detailed Description

Internet checksum (RFC 1071) over several (possibly odd sized) pieces.

Member Function Documentation

◆ add()

void add ( const uint8_t *  p,
size_t  len 
)
inline

Adds data.

◆ add16()

void add16 ( uint16_t  v)
inline

Adds a 16 bit value.

◆ result()

uint16_t result ( ) const
inline

The checksum of all added data.


The documentation for this class was generated from the following file: