Amazon Kinesis Webrtc C SDK
IOBuffer.h
Go to the documentation of this file.
1 #ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_CRYPTO_IOBUFFER__
2 #define __KINESIS_VIDEO_WEBRTC_CLIENT_CRYPTO_IOBUFFER__
3 
4 #pragma once
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef struct __IOBuffer IOBuffer, *PIOBuffer;
11 struct __IOBuffer {
12  UINT32 off, len, cap;
13  PBYTE raw;
14 };
15 
16 STATUS createIOBuffer(UINT32, PIOBuffer*);
17 STATUS freeIOBuffer(PIOBuffer*);
18 
19 STATUS ioBufferReset(PIOBuffer);
20 STATUS ioBufferWrite(PIOBuffer, PBYTE, UINT32);
21 STATUS ioBufferRead(PIOBuffer, PBYTE, UINT32, PUINT32);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 #endif //__KINESIS_VIDEO_WEBRTC_CLIENT_CRYPTO_IOBUFFER__
STATUS ioBufferReset(PIOBuffer)
Definition: IOBuffer.c:47
STATUS createIOBuffer(UINT32, PIOBuffer *)
Definition: IOBuffer.c:4
struct __IOBuffer * PIOBuffer
Definition: IOBuffer.h:10
STATUS ioBufferRead(PIOBuffer, PBYTE, UINT32, PUINT32)
Definition: IOBuffer.c:85
STATUS freeIOBuffer(PIOBuffer *)
Definition: IOBuffer.c:29
STATUS ioBufferWrite(PIOBuffer, PBYTE, UINT32)
Definition: IOBuffer.c:61
Definition: IOBuffer.h:11
UINT32 cap
Definition: IOBuffer.h:12
UINT32 len
Definition: IOBuffer.h:12
PBYTE raw
Definition: IOBuffer.h:13
UINT32 off
Definition: IOBuffer.h:12