#include "cycript.hpp"
#include "Pooling.hpp"
+#include <iostream>
+
struct CYUTF8String {
const char *data;
size_t size;
+ CYUTF8String(const char *data) :
+ data(data),
+ size(strlen(data))
+ {
+ }
+
CYUTF8String(const char *data, size_t size) :
data(data),
size(size)
}
};
+static inline std::ostream &operator <<(std::ostream &lhs, CYUTF8String &rhs) {
+ lhs.write(rhs.data, rhs.size);
+ return lhs;
+}
+
struct CYUTF16String {
const uint16_t *data;
size_t size;