11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef __XPCOMPRESSION_H__
13 #define __XPCOMPRESSION_H__
15 namespace RNReplicaNet
18 #define _XPCOMPRESSION_VERSION 5100
52 bool Compress(
void *source_data,
int source_length,
void *destination_data,
int *destination_length,
int level = 10);
63 bool Decompress(
void *source_data,
int source_length,
void *destination_data,
int *destination_length,
int max_buffer_size);
int CalculateMaximumMemory(int size)
bool Compress(void *source_data, int source_length, void *destination_data, int *destination_length, int level=10)
Definition: XPCompression.h:23
bool Decompress(void *source_data, int source_length, void *destination_data, int *destination_length, int max_buffer_size)