2022-06-14 04:28:42 +01:00
|
|
|
#ifndef __OODLE2NET_H__
|
|
|
|
#define __OODLE2NET_H__
|
2023-01-26 07:10:45 -03:00
|
|
|
#include <stdint.h>
|
2022-06-14 04:28:42 +01:00
|
|
|
|
2023-01-26 07:10:45 -03:00
|
|
|
extern "C" intptr_t OodleNetwork1_Shared_Size( int32_t htbits );
|
2022-06-14 04:28:42 +01:00
|
|
|
|
2023-01-26 07:10:45 -03:00
|
|
|
extern "C" intptr_t OodleNetwork1UDP_State_Size();
|
2022-06-14 04:28:42 +01:00
|
|
|
|
2023-01-26 07:10:45 -03:00
|
|
|
extern "C" void OodleNetwork1_Shared_SetWindow(
|
2022-06-14 04:28:42 +01:00
|
|
|
void* shared,
|
|
|
|
int32_t htbits,
|
|
|
|
const void* window,
|
|
|
|
int32_t windowSize
|
|
|
|
);
|
|
|
|
|
2023-01-26 07:10:45 -03:00
|
|
|
extern "C" void OodleNetwork1UDP_Train(
|
2022-06-14 04:28:42 +01:00
|
|
|
void* state,
|
|
|
|
const void* shared,
|
|
|
|
const void** trainingPacketPointers,
|
|
|
|
const int32_t* trainingPacketSizes,
|
|
|
|
int32_t numTrainingPackets
|
|
|
|
);
|
|
|
|
|
2023-01-26 07:10:45 -03:00
|
|
|
extern "C" bool OodleNetwork1UDP_Decode(
|
2022-06-14 04:28:42 +01:00
|
|
|
void* state,
|
|
|
|
const void* shared,
|
|
|
|
const void* enc,
|
|
|
|
intptr_t encSize,
|
|
|
|
void* dec,
|
|
|
|
intptr_t decSize
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|