Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_Binary.dox.h
1 namespace Qore {
4
5 class <binary> : public <value> {
6
7 public:
9
21 bool empty();
22
23 public:
25
35 int size();
36
37 public:
39
55 list split(binary sep);
56
57 public:
59
78 binary substr(softint start);
79
80 public:
82
102 binary substr(softint start, softint len);
103
104 public:
106
126 string toBase64(softint maxlinelen = -1);
127
128 public:
130
147 string toHex();
148
149 public:
151
175 string toMD5();
176
177 public:
179
201 string toSHA1();
202
203 public:
205
230 string toSHA224();
231
232 public:
234
259 string toSHA256();
260
261 public:
263
288 string toSHA384();
289
290 public:
292
317 string toSHA512();
318
319 public:
321
335 string toString(*string encoding);
336
337 public:
339
353 int typeCode();
354
355 public:
357
373 bool val();
374 };
375 };
<binary>::val
bool val()
Returns False if the binary object is empty (size = 0), True if not.
<value>
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:5
<binary>::empty
bool empty()
Returns True if the binary object is empty (size = 0), False if not.
<binary>::toSHA256
string toSHA256()
Returns the SHA-256 message digest (a variant of SHA-2) of the binary data as a hex string...
<binary>::substr
binary substr(softint start)
Returns a portion of the binary data starting from an integer offset.
<binary>::toSHA1
string toSHA1()
Returns the SHA1 message digest of the binary data as a hex string.
<binary>::toMD5
string toMD5()
Returns the MD5 message digest of the binary data as a hex string.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
<binary>::toSHA512
string toSHA512()
Returns the SHA-512 message digest (a variant of SHA-2) of the binary data as a hex string...
<binary>::split
list split(binary sep)
Returns a list of binary objects representing each component of the binary object separated by the by...
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
<binary>::toBase64
string toBase64(softint maxlinelen=-1)
Returns the base64-encoded representation of the binary object.
<binary>
Methods in this pseudo-class can be executed on binary values.
Definition: Pseudo_QC_Binary.dox.h:5
<binary>::typeCode
int typeCode()
Returns Qore::NT_BINARY.
<binary>::size
int size()
Returns the number of bytes in the binary object.
<binary>::toSHA384
string toSHA384()
Returns the SHA-384 message digest (a variant of SHA-2) of the binary data as a hex string...
<binary>::toHex
string toHex()
returns a string of hexadecimal digits corresponding to the contents of the binary object ...
<binary>::toSHA224
string toSHA224()
Returns the SHA-224 message digest (a variant of SHA-2) of the binary data as a hex string...
<value>::toString
string toString()
Returns the string representation of the value; the default is an empty string.