May 05, 2020 Learn » std.uni, std.ascii, std.encoding, std.utf ugh! | |||
|---|---|---|---|
| |||
...transition between: ``` immutable(ubyte)[] -> validate utf8 -> string -> nothrow usage -> isDigit etc immutable(ubyte)[] -> validate ascii... | |||
May 02, 2020 Learn » Re: How can I open a Binary EXE with Hexadecimal? | |||
|---|---|---|---|
| |||
...File("filename", "r"); //open file for reading
ubyte[] data; //a GC allocated buffer for data... | |||
May 02, 2020 Issues » [Issue 20793] New: Variant equals of different types | |||
|---|---|---|---|
| |||
...reproduce:
---
struct S1 {
ubyte a;
ubyte[64] u;
}
struct S2 {
ubyte a;
ubyte[64] u... | |||
April 27, 2020 General » D defined behavior | |||
|---|---|---|---|
| |||
...1;
*b = 1;
return *a;
}
void main() {
ubyte[6] buffer;
auto a = cast(int[]) (buffer... | |||
April 27, 2020 General » Re: D perfomance | |||
|---|---|---|---|
| |||
...majority of our buffer were `char[]` and `ubyte[]`. We had some elaborate types, but I... | |||
April 27, 2020 Issues » [Issue 20776] New: No error is given out for wrong static if expression | |||
|---|---|---|---|
| |||
...K) && is(Unqual!K == ubyte)) {
writeln("OK");
} else {
writeln("Wrong");
}
}
void main() {
test!(const(ubyte)[]);
}
-- | |||
April 26, 2020 General » Re: D perfomance | |||
|---|---|---|---|
| |||
...nowadays that custom type can use a scoped ubyte slice to expose its temp buffer. | |||
April 26, 2020 General » Re: D perfomance | |||
|---|---|---|---|
| |||
...and having converts that e.g. accept ubyte arrays from libraries and convert them into... | |||
April 22, 2020 Learn » Re: Enum conversion | |||
|---|---|---|---|
| |||
...a ubyte, use a cast. But the compiler isn't going to accept ubyte(someLong... | |||
April 22, 2020 Learn » Re: Enum conversion | |||
|---|---|---|---|
| |||
...converting a ulong to a ubyte, I am assuming to!ubyte(x) is the right... | |||
Copyright © 1999-2021 by the D Language Foundation