pike.git/
lib/
modules/
ADT.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-05-10
2014-05-10 18:46:11 by Martin Nilsson <nilsson@opera.com>
2ccca2453027e5d3dfdba01515a4f352873b962a (
13
lines) (+
13
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Added put_var_string_array() that works similar to the put_ver_uint_array for strings.
118:
return this; }
+
this_program put_var_string_array(array(string(8bit)) data, int(0..) item_size, int(0..) len)
+
{
+
string(8bit) temp = buffer;
+
buffer = "";
+
foreach(data, string(8bit) s)
+
put_var_string(s, item_size);
+
string(8bit) arr = buffer;
+
buffer = temp;
+
put_var_string(arr, len);
+
return this;
+
}
+
//! Reads an unsigned integer from the buffer. int(0..) get_uint(int len) {