Search

July 21, 2020
Learn »
...which most static arrays are):

struct S
{
    ubyte[17_000_000] big;
}

void main()
{
    auto...
July 21, 2020
Issues »
...request #11437 "fix Issue 14458 - very slow ubyte[] assignment (dmd doesn't use memset)" fixing...
July 21, 2020
Issues »
https://issues.dlang.org/show_bug.cgi?id=14458

--- Comment #2 from Walter Bright <bugzilla...
July 19, 2020
Issues »
https://issues.dlang.org/show_bug.cgi?id=14458

Walter Bright <bugzilla@digitalmars.com> changed...
July 19, 2020
Issues »
https://issues.dlang.org/show_bug.cgi?id=14458

Walter Bright <bugzilla@digitalmars.com> changed...
July 18, 2020
Learn »
...with their starting `[0x5a, packet.length.to!ubyte]` included. And only communication with a single...
July 18, 2020
LDC »
...code will trigger LTO error:

struct Buffer {
   ubyte*	m_data;
   union {
	   ulong   m_placeholder;
	   uint...
July 13, 2020
Learn »
...static Canvas Create();

        basic_string!ubyte Foo();

        basic_string!ubyte Bar();
    };
}

void main()
{
	Canvas canvas...
July 09, 2020
Learn »
Nah, just do this:

	arr = new ubyte[arraySize];

Mission accomplished. ;-)


T

-- 
I am Ohm of...
July 09, 2020
Learn »
...t arraySize)
{
    void *ptr = alloca(arraySize);
    ubyte[] arr = cast(ubyte[])ptr[0..arraySize];

}

it would...
91 92 93 94 95 96 97 98 99 100 101 102
Next ›   Last »