FireBirdLib - Topfield TMS PVR TAP Programming Library
PSBuffer_Free.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
libFireBird.h
"
3
4
#undef free
5
6
void
PSBuffer_Free
(
tPSBuffer
*PSBuffer)
7
{
8
TRACEENTER
();
9
10
if
(PSBuffer)
11
{
12
if
(PSBuffer->
Buffer
[0].
PSData
) free(PSBuffer->
Buffer
[0].
PSData
);
13
if
(PSBuffer->
Buffer
[0].
FileOffset
) free(PSBuffer->
Buffer
[0].
FileOffset
);
14
15
if
(PSBuffer->
Buffer
[1].
PSData
) free(PSBuffer->
Buffer
[1].
PSData
);
16
if
(PSBuffer->
Buffer
[1].
FileOffset
) free(PSBuffer->
Buffer
[1].
FileOffset
);
17
18
memset(PSBuffer, 0,
sizeof
(
tPSBuffer
));
19
}
20
21
TRACEEXIT
();
22
}
PSBuffer_Free
void PSBuffer_Free(tPSBuffer *PSBuffer)
Definition:
PSBuffer_Free.c:6
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tBuffer::PSData
byte * PSData
Definition:
libFireBird.h:2454
tBuffer::FileOffset
ulong64 * FileOffset
Definition:
libFireBird.h:2456
tPSBuffer
Definition:
libFireBird.h:2460
tPSBuffer::Buffer
tBuffer Buffer[2]
Definition:
libFireBird.h:2462
rec
PSBuffer_Free.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3