summaryrefslogtreecommitdiff
path: root/Source/Kernel/Library/ByteArray.class.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-19 20:37:05 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-19 20:37:05 +0200
commit0d5f4201217272f93d608be86e644d58f181725a (patch)
treeac4ac7f6b411cecc024866a26cf7fe158ba75f78 /Source/Kernel/Library/ByteArray.class.h
parent64fc3862f602750733b7dc0447d22ae5d4146821 (diff)
downloadMelon-0d5f4201217272f93d608be86e644d58f181725a.tar.gz
Melon-0d5f4201217272f93d608be86e644d58f181725a.zip
Lot of changes. Log now go to /System/Logs/*.log
Diffstat (limited to 'Source/Kernel/Library/ByteArray.class.h')
-rw-r--r--Source/Kernel/Library/ByteArray.class.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Kernel/Library/ByteArray.class.h b/Source/Kernel/Library/ByteArray.class.h
index 4b2dbed..f5214b3 100644
--- a/Source/Kernel/Library/ByteArray.class.h
+++ b/Source/Kernel/Library/ByteArray.class.h
@@ -7,6 +7,12 @@
class ByteArray : public BasicString<u8int> {
public:
ByteArray() : BasicString<u8int>() {}
+ ByteArray(const BasicString<u8int> &bs) : BasicString<u8int>() {
+ m_length = bs.size();
+ m_string = new u8int[m_length];
+ for (u32int i = 0; i < m_length; i++)
+ m_string[i] = bs[i];
+ }
ByteArray(const ByteArray& other) : BasicString<u8int>(other) {}
ByteArray(const char* c);
ByteArray(u32int size) : BasicString<u8int>((u8int)0, size) {}
@@ -17,7 +23,7 @@ class ByteArray : public BasicString<u8int> {
void dump(VirtualTerminal *vt);
- operator String ();
+ String toString(u8int encoding = UE_UTF8);
operator u8int* () { return m_string; }
};