yumapro  23.10T-6
YumaPro SDK
Loading...
Searching...
No Matches
blob.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_blob
13#define _H_blob
14/* FILE: blob.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
26/*********************************************************************
27* *
28* C H A N G E H I S T O R Y *
29* *
30*********************************************************************
31
32date init comment
33----------------------------------------------------------------------
3422-apr-05 abb begun
35*/
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41
42
65extern void
66 blob2bin (const char *pblob,
67 unsigned char *pbuff,
68 uint32 bsize);
69
70
81extern void
82 bin2blob (const unsigned char *pbuff,
83 char *pblob,
84 uint32 bsize);
85
86 // END b64util
88
89
90#ifdef __cplusplus
91} /* end extern 'C' */
92#endif
93
94#endif /* _H_blob */
void bin2blob(const unsigned char *pbuff, char *pblob, uint32 bsize)
Convert a binary string to to a mySQL BLOB.
Definition: blob.c:148
void blob2bin(const char *pblob, unsigned char *pbuff, uint32 bsize)
Convert a mySQL BLOB to a binary string.
Definition: blob.c:119