Search

May 05, 2020
Learn »
...transition between:

```
immutable(ubyte)[] -> validate utf8 -> string -> nothrow usage -> isDigit etc
immutable(ubyte)[] -> validate ascii...
May 02, 2020
Learn »
...File("filename", "r"); //open file for reading
ubyte[] data; //a GC allocated buffer for data...
May 02, 2020
Issues »
...reproduce:
---
struct S1 {
        ubyte a;
        ubyte[64] u;
}
struct S2 {
        ubyte a;
        ubyte[64] u...
April 27, 2020
General »
...1;
    *b = 1;
    return *a;
}

void main() {
    ubyte[6] buffer;
    auto a = cast(int[]) (buffer...
April 27, 2020
General »
...majority of our buffer were `char[]` and `ubyte[]`. We had some elaborate types, but I...
April 27, 2020
Issues »
...K) && is(Unqual!K == ubyte)) {
        writeln("OK");
    } else {
        writeln("Wrong");
    }
}

void main() {
    test!(const(ubyte)[]);
}

--
April 26, 2020
General »
...nowadays that custom type can use a scoped ubyte slice to expose its temp buffer.
April 26, 2020
General »
...and having converts that e.g. accept ubyte arrays from libraries and convert them into...
April 22, 2020
Learn »
...a ubyte, use a cast.

But the compiler isn't going to accept ubyte(someLong...
April 22, 2020
Learn »
...converting a ulong to a ubyte, I am assuming to!ubyte(x) is
the right...
96 97 98 99 100 101 102 103 104 105 106 107
Next ›   Last »