Commit ceb0da14 authored by Sven Robertz's avatar Sven Robertz
Browse files

now the csharp lib compiles. Still not tested, though

parent f08fd69f
......@@ -169,7 +169,7 @@ namespace se.lth.control.labcomm {
do {
byte c = decodeByte();
res |= (c & 0x7f) << 7*i;
res |= (uint) ((c & 0x7f) << 7*i);
cont = (c & 0x80) != 0;
i++;
} while(cont);
......
......@@ -15,6 +15,7 @@ namespace se.lth.control.labcomm {
void encodeFloat(float value);
void encodeDouble(double value);
void encodeString(String value);
void encodePacked32(Int64 value);
}
......
......@@ -84,7 +84,7 @@ namespace se.lth.control.labcomm {
public void encodeString(String value) {
byte[] buf = Encoding.UTF8.GetBytes(value);
EncodePacked32(buf.Length, 4);
encodePacked32(buf.Length);
bytes.Write(buf, 0, buf.Length);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment