Search

August 19, 2022
Learn »
Once you need more size, you can reallocate...values where N doesn't change should only...
August 18, 2022
Learn »
...writeln(results[$-toPrint..$]);
}

void foo(size_t i, size_t j, int[] results) {
  results[i...
August 19, 2022
Learn »
...are about the same size for each pass...Even if they aren't equal, you'll...
August 18, 2022
Learn »
...length static array:

```d
struct ArenaChunk {
    size_t size;
    ArenaChunk* next;
    char[0] memory;
}
```

Then...
August 18, 2022
Learn »
...char[] {
    char* ptr; //pointer to first element
    size_t length;
}
```

Also the allocation code probably...
August 18, 2022
Learn »
...s my arena definition:

```
struct ArenaChunk {
    size_t size;
    ArenaChunk* next;
    char[] memory; // flexible array...
August 17, 2022
Learn »
A 16-byte element size must be put...do this, this doesn't help because at...
August 17, 2022
Learn »
...Metadata isn't always stored. Plus, it's optimized for the block size.
> For example...
August 16, 2022
Learn »
...Metadata isn't always stored. Plus, it's optimized for the block size. For example...
August 16, 2022
Learn »
...16 bytes total (on 64 bits): void* + size_t and I see this when I...
76 77 78 79 80 81 82 83 84 85 86 87
Next ›   Last »