?? rvrtpbuffer.c
字號:
/*
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.
*/
#include "rvstdio.h"
#include "rvrtpbuffer.h"
#ifdef __cplusplus
extern "C" {
#endif
RvBool buffAddToBuffer(RvRtpBuffer* to, RvRtpBuffer* from, RvUint32 offset)
{
if (from->length + offset <= to->length)
{
memcpy((RvUint8*)to->buffer + offset, from->buffer, from->length);
return RV_TRUE;
}
return RV_FALSE;
}
RvBool buffValid(RvRtpBuffer* buff, RvUint32 size)
{
return (size <= buff->length && buff->buffer);
}
RvRtpBuffer buffCreate(void* data,int size)
{
RvRtpBuffer buff;
buff.buffer = (unsigned char*)data;
buff.length = size;
return buff;
}
#ifdef __cplusplus
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -