/usr/include/yuma/ncx/blob.h is in libyuma-dev 2.9-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /*
* Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#ifndef _H_blob
#define _H_blob
/* FILE: blob.h
*********************************************************************
* *
* P U R P O S E *
* *
*********************************************************************
binary to string conversion for database storage
*********************************************************************
* *
* C H A N G E H I S T O R Y *
* *
*********************************************************************
date init comment
----------------------------------------------------------------------
22-apr-05 abb begun
*/
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************
* FUNCTION blob2bin
*
* Convert a mySQL BLOB to a binary string
*
* INPUTS:
* pblob == pointer to BLOB to convert; must be of the
* same type as the binary object; this blob will be
* bsize * 2 + 1 bytes in length
* pbuff == pointer to buffer to fill in; must be at least
* bsize+1 bytes in length
* bsize == binary object size
* OUTPUTS:
* pbuff is filled in
*********************************************************************/
extern void
blob2bin (const char *pblob,
unsigned char *pbuff,
uint32 bsize);
/********************************************************************
* FUNCTION bin2blob
*
* Convert a binary string to to a mySQL BLOB
*
* INPUTS:
* pbuff == pointer to buffer to convert; must be at least
* bsize+1 bytes in length
* pblob == pointer to BLOB to fill in; must be at least
* bsize * 2 + 1 bytes in length
* bsize == binary object size
* OUTPUTS:
* pblob is filled in, and zero-terminated
*********************************************************************/
extern void
bin2blob (const unsigned char *pbuff,
char *pblob,
uint32 bsize);
#ifdef __cplusplus
} /* end extern 'C' */
#endif
#endif /* _H_blob */
|