📄 ocibin.h
字号:
#ifndef _COCIBinary
#define _COCIBinary
#ifndef OCI_ORACLE
#include "oci.h"
#endif
#ifndef _COCISession
#include "ocisess.h"
#endif
#ifndef _STRING_
#include <string>
#endif
class COCIBinary
{
public:
// construction
COCIBinary();
COCIBinary(char* cp, ub4 size);
COCIBinary(COCIBinary& binary);
// destruction
~COCIBinary();
// methods
ub1* begin();
ub1* end();
void insert(ub4, COCIBinary&);
int length();
void remove(ub4 start, ub4 len);
void replace(ub4 start, ub4, COCIBinary&);
void resize(ub4 newLength);
std::string raw_to_hex();
void hex_to_raw(std::string& hexstr);
// operators
ub1& operator [] (ub4 index);
void operator = (const COCIBinary& binary);
COCIBinary& operator = (char * str);
void operator += (COCIBinary& right);
operator char* () const;
// friends
friend int operator == (const COCIBinary& left, const COCIBinary& right);
friend int operator != (const COCIBinary& left, const COCIBinary& right);
friend int operator < (const COCIBinary& left, const COCIBinary& right);
friend int operator <= (const COCIBinary& left, const COCIBinary& right);
friend int operator > (const COCIBinary& left, const COCIBinary& right);
friend int operator >= (const COCIBinary& left, const COCIBinary& right);
friend COCIBinary operator + (COCIBinary& left, COCIBinary& right);
// data areas
protected:
ub1* m_Buffer; // Pointer to dynamic buffer
ub4 m_BufferLength; // Length of dynamic buffer
};
#endif _COCIBinary
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -