diff options
Diffstat (limited to 'src/Bytes.c')
| -rw-r--r-- | src/Bytes.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Bytes.c b/src/Bytes.c index 8949380..07242af 100644 --- a/src/Bytes.c +++ b/src/Bytes.c @@ -215,3 +215,13 @@ BH_IO *BH_BytesNew(char *data, return (BH_IO*)bytes; } + + +int BH_IOIsBytes(BH_IO *device) +{ + if (!device) + return 0; + + return device->callback == (BH_IOCallback)bytesCallback; +} + |
