A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
13
namespace
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
*/
22
uint8_t
CRC8Calculate
(
const
uint8_t*
data
,
int
length);
23
24
}
// namespace ns3
25
26
#endif
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::CRC8Calculate
uint8_t CRC8Calculate(const uint8_t *data, int length)
Definition
crc8.cc:40
data
uint8_t data[writeSize]
Definition
socket-bound-tcp-static-routing.cc:41
src
wimax
model
crc8.h
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0