-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
282 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "io_context.h" | ||
#include <stdint.h> | ||
|
||
int astiavIOContextReadFunc(void *opaque, uint8_t *buf, int buf_size) | ||
{ | ||
return goAstiavIOContextReadFunc(opaque, buf, buf_size); | ||
} | ||
|
||
int64_t astiavIOContextSeekFunc(void *opaque, int64_t offset, int whence) | ||
{ | ||
return goAstiavIOContextSeekFunc(opaque, offset, whence); | ||
} | ||
|
||
int astiavIOContextWriteFunc(void *opaque, uint8_t *buf, int buf_size) | ||
{ | ||
return goAstiavIOContextWriteFunc(opaque, buf, buf_size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <stdint.h> | ||
|
||
extern int goAstiavIOContextReadFunc(void *opaque, uint8_t *buf, int buf_size); | ||
extern int64_t goAstiavIOContextSeekFunc(void *opaque, int64_t offset, int whence); | ||
extern int goAstiavIOContextWriteFunc(void *opaque, uint8_t *buf, int buf_size); | ||
|
||
int astiavIOContextReadFunc(void *opaque, uint8_t *buf, int buf_size); | ||
int64_t astiavIOContextSeekFunc(void *opaque, int64_t offset, int whence); | ||
int astiavIOContextWriteFunc(void *opaque, uint8_t *buf, int buf_size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters