⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 per.h

📁 基于h323协议的软phone
💻 H
字号:
#ifdef __cplusplus
extern "C" {
#endif



/*
***********************************************************************************

NOTICE:
This document contains information that is proprietary to RADVISION LTD..
No part of this publication may be reproduced in any form whatsoever without
written prior approval by RADVISION LTD..

RADVISION LTD. reserves the right to revise this publication and make changes
without obligation to notify any person of such revisions or changes.

***********************************************************************************
*/

/*
  perComplex.h

  Ron S. 7 Nov. 1995
*/


#ifndef _PER_
#define _PER_

#include "pvaltree.h"
#include "coderbitbuffer.h"

RV_DECLARE_HANDLE(HPER);


RvInt32 bbGet2Right(HPER hPer,
        IN RvUint32 fromBitPosition, /* in buffer */
        IN RvUint32 numOfBitsToGet,
        OUT RvUint8 *dest); /* destination buffer */

RvInt32 bbGet2Left(HPER hPer,
           IN RvUint32 fromBitPosition, /* in buffer */
           IN RvUint32 numOfBitsToGet,
           OUT RvUint8 *dest); /* destination buffer */



int perGetMsa(void);

/************************************************************************
 * perConstruct
 * purpose: Construct PER information needed by the encode/decode manager.
 * input  : maxBufSize  - Maximum size of buffer supported (messages larger
 *                        than this size in bytes cannot be decoded/encoded).
 * output : none
 * return : none
 ************************************************************************/
void perConstruct(IN int maxBufSize);

/************************************************************************
 * perBufferEnd
 * purpose: close down the local storage
 * input  : none
 * output : none
 * return : void
 ************************************************************************/
void perBufferEnd(void);


void perDestruct(void);

int perEncode(
          IN  HPVT  valH,            /* encoding from value tree */
          IN  int    valNodeId,       /* root of encoding */
          OUT RvUint8*buffer,         /* encoding to this buffer */
          IN  int    bufferLength,    /* in bytes */
          OUT int*   encoded);        /* BYTES encoded to buffer */

int perDecode(
          OUT HPVT valH,         /* decoding to value tree */
          IN  int   valNodeId,    /* root of encoding */
          IN  RvInt32 fieldId,      /* root field Id */
          IN  RvUint8*buffer,       /* decoding from this buffer */
          IN  int   bufferLength, /* in bytes */
          OUT int*  decoded);     /* number of BYTES successfully decoded from buffer */

#endif
#ifdef __cplusplus
}
#endif



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -