rtputil.c

来自「Radvision rtpRtcp协议栈 4.5.0.18 版本」· C语言 代码 · 共 38 行

C
38
字号
/***********************************************************************        Copyright (c) 2002 RADVISION Ltd.************************************************************************NOTICE:This document contains information that is confidential and proprietaryto RADVISION Ltd.. No part of this document may be reproduced in anyform whatsoever without written prior approval by RADVISION Ltd..RADVISION Ltd. reserve the right to revise this publication and makechanges without obligation to notify any person of such revisions orchanges.***********************************************************************/#include "rvtypes.h"#include "rvlock.h"#include "rvmemory.h"#include "rvnet2host.h"#include "rtputil.h"void ConvertToNetwork(void *data, int pos, int n){    int i;    for (i = pos; i < pos + n; ++i)      ((RvUint32*)data)[i] = RvConvertHostToNetwork32(((RvUint32*)data)[i]);}void ConvertFromNetwork(void *data, int pos, int n){    int i;    for (i = pos; i < pos + n; ++i)      ((RvUint32*)data)[i] = RvConvertNetworkToHost32(((RvUint32*)data)[i]);}

⌨️ 快捷键说明

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