A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
crc8.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007,2008, 2009 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 * <amine.ismail@udcast.com>
8 */
9#ifndef CRC8_H
10#define CRC8_H
11#include <stdint.h>
12
13namespace ns3
14{
15
16/**
17 * \param data buffer to calculate the checksum for
18 * \param length the length of the buffer (bytes)
19 * \returns the computed crc.
20 *
21 */
22uint8_t CRC8Calculate(const uint8_t* data, int length);
23
24} // namespace ns3
25
26#endif
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t CRC8Calculate(const uint8_t *data, int length)
Definition crc8.cc:40
uint8_t data[writeSize]