diff --git a/src/quic_util.h b/src/quic_util.h deleted file mode 100644 index f5c77ad..0000000 --- a/src/quic_util.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * quic_util.h - * - * Created on: 2019-4-4 - * Author: root - */ -#ifndef SRC_QUIC_UTIL_H_ -#define SRC_QUIC_UTIL_H_ - -#include -#include -#include - -#include "gquic.h" - - -int readconf(const char* filename); -bool a_readUInt64(UINT64* buf, char* quic_data, UINT32 quic_data_len, UINT32* offset); -bool a_readUInt32(UINT32* buf, char* quic_data, UINT32 quic_data_len, UINT32* offset); -bool a_readUInt8(UINT8* buf, char* quic_data, UINT32 quic_data_len, UINT32* offset); -bool a_readUInt16(UINT16* buf, char* quic_data, UINT32 quic_data_len, UINT32* offset); -bool a_readBytes(void* buf, UINT32 len, char * quic_data, UINT32 quic_data_len, UINT32* quic_offset); -bool a_canRead(size_t bytes, UINT32 g_len_t, UINT32 g_pos_t); -UINT64 a_pletoh64(const void *p, UINT32 offset); -UINT64 a_pletoh48(const void *p, UINT32 offset); -UINT32 a_pletoh32(const void *p, UINT32 offset); -UINT32 a_pletoh24(const void *p, UINT32 offset); -UINT16 a_pletoh16(const void *p, UINT32 offset); -UINT16 a_pntoh16(const void *p, UINT32 offset); -UINT32 a_pntoh24(const void *p, UINT32 offset); -UINT32 a_pntoh32(const void *p, UINT32 offset); -UINT64 a_pntoh48(const void *p, UINT32 offset); -UINT64 a_pntoh64(const void *p, UINT32 offset); -void a_phton64(UINT8 *p, UINT64 v); -int get_remaining_len(UINT32 g_len_t, UINT32 offset); -void a_ntoa( unsigned int in, char *buffer); - - - -#endif /* SRC_QUIC_UTIL_H_ */