asn_bits.h
来自「ATM 网 络 协 议 实 现 源 代 码」· C头文件 代码 · 共 65 行
H
65 行
/* * asn_bits.h * * MS 92 * Copyright (C) 1992 Michael Sample and the University of British Columbia * * This library is free software; you can redistribute it and/or * modify it provided that this copyright/license information is retained * in original form. * * If you modify this file, you must clearly indicate your changes. * * This source code is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */#ifndef _asn_bits_h_#define _asn_bits_h_typedef struct AsnBits{ int bitLen; char* bits;} AsnBits;extern char numToHexCharTblG[];#define TO_HEX(fourBits) (numToHexCharTblG[(fourBits) & 0x0f])#define ASNBITS_PRESENT(abits) ((abits)->bits != NULL)AsnLen BEncAsnBits PROTO((BUF_TYPE b, AsnBits* data));void BDecAsnBits PROTO((BUF_TYPE b, AsnBits* result, AsnLen* bytesDecoded, ENV_TYPE env));AsnLen BEncAsnBitsContent PROTO((BUF_TYPE b, AsnBits* bits));void BDecAsnBitsContent PROTO((BUF_TYPE b, AsnLen len, AsnTag tagId, AsnBits* result, AsnLen* bytesDecoded, ENV_TYPE env));void FreeAsnBits PROTO((AsnBits* v));void PrintAsnBits PROTO((FILE* f, AsnBits* b, unsigned short int indent));int AsnBitsEquiv PROTO((AsnBits* b1, AsnBits* b2));void SetAsnBit PROTO((AsnBits* b1, unsigned long int bit));void ClrAsnBit PROTO((AsnBits* b1, unsigned long int bit));int GetAsnBit PROTO((AsnBits* b1, unsigned long int bit));#endif /* conditional include */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?