board/sg-frame.c: Add "sg" framing support

This commit is contained in:
Tau
2018-11-20 20:21:23 -05:00
parent 9f43f9f397
commit b8ffd20877
3 changed files with 181 additions and 0 deletions

15
board/sg-frame.h Normal file
View File

@ -0,0 +1,15 @@
#pragma once
#include <windows.h>
#include <stddef.h>
#include <stdint.h>
#include "hook/iobuf.h"
HRESULT sg_frame_decode(
struct iobuf *dest,
const uint8_t *bytes,
size_t nbytes);
HRESULT sg_frame_encode(struct iobuf *dest, const void *ptr, size_t nbytes);