std1.0.0-beta-7 SafeC docs

std :: net::net_core

Struct std::PacketBuf

#include <std/net/net_core.h> source

struct PacketBuf {
    unsigned char data[NET_MTU];
    unsigned long len;
}

Fields

§unsigned char data[NET_MTU]source
§unsigned long lensource

bytes in use

Methods

§?&unsigned char at(unsigned long offset)source · definition

The byte at offset, or null past the end of the buffer.

§void reset()source · definition

Zero the buffer and reset len.