phobos/std
Carsten Schlote f434dc3cae Add custom fill value to std.outbuffer.OutBuffer class
Extend the fill, alignSize, align{2,4} methods of `std.outbuffer.OutBuffer` to specify value to write
when filling (up to an alignment).

For flash device images it is desirable to use 0xff as the fill value,
because 0xff is the value of the unprogrammed flash memory cell. Padding
with 0 requires to programm the flash cell from 0xff to 0x00, which
increases wear and tear on the flash memory device. Usually there is some
larger block at the end if the flash memory image, which must be padded
up to the size of the flash device (usuallay a power of two). Instead
of padding with 0x00 the PR allows to fill with 0xff instead.

There might also be other use-cases, where it might be reasonable to fill
the alignment gaps with some other value than 0x00, e.g. when debugging
and viewing output data in a hex editor. It is easier to spot gaps, when
the padded spaces contain a custom value like 0x55 or 0xaa.

A new fill method was added, which allows filling with a user-defined value
instead of the 0 as in the previous implementation.
2022-04-29 12:57:10 +02:00
..
algorithm Fix return scope in cartesianProduct Result.save 2022-03-09 15:37:09 +00:00
container Fix return/inout usage in rbtree 2022-02-16 16:27:04 +00:00
datetime Fix incorrect return scope annotations 2022-03-22 18:08:31 +00:00
digest Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
experimental Merge remote-tracking branch 'upstream/stable' into merge_stable 2022-04-01 10:23:49 +02:00
format Merge remote-tracking branch 'upstream/stable' into merge_stable 2022-04-01 10:23:49 +02:00
internal Unblock "address of ref can be assigned to non-scope parameter" 2022-02-17 00:44:02 +00:00
math Merge remote-tracking branch 'upstream/stable' into merge_stable 2021-11-09 10:30:28 +02:00
net Use return scope instead of just return 2021-11-26 17:03:06 +01:00
range Fix Issue 18036 - Documentation of moveFront() 2022-02-28 12:36:36 +00:00
regex Fix switch fallthrough 2022-04-11 11:26:11 +00:00
uni Make toLower and toUpper return scope 2022-03-25 20:08:06 +01:00
windows Merge pull request #8422 from MoonlightSentinel/throw-windows-exception 2022-03-31 11:24:51 +03:00
array.d Fixes issues 22185, 22673 (#8359) 2022-01-26 11:24:59 +00:00
ascii.d
base64.d Fix issue 22213 - Base64: Missing @nogc attribute on encodeLength 2022-04-13 16:06:38 +02:00
bigint.d Fix bigint return scope order 2022-02-19 11:47:37 +00:00
bitmanip.d Fix 22838 - BitArray.count reads beyond data 2022-03-03 01:00:41 +01:00
checkedint.d Move checkedint out of experimental (#8100) 2022-01-25 00:17:24 +00:00
compiler.d
complex.d Fix Issue 22704 - Linker error when running the public unittests 2022-01-25 18:48:04 +00:00
concurrency.d Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
conv.d Improve std.conv.parse support for scope strings 2022-03-28 08:18:27 +00:00
csv.d std.csv allow un equal number of value separators 2021-08-26 15:37:24 +00:00
demangle.d
encoding.d Rename the initial value of some enums from init to _init 2021-05-12 10:56:46 +08:00
exception.d Issue 22986: Mark ErrnoException.errno as scope 2022-04-27 18:55:50 +00:00
file.d Fix 13541 - Replace usages of sysErrorString` with a helper function 2022-03-28 01:01:25 +02:00
functional.d [Refactor] Move toCtString to std.conv 2022-03-26 14:04:37 +00:00
getopt.d getopt: mark defaultGetoptPrinter as @safe 2022-02-22 00:38:36 +00:00
int128.d add std.int128 2022-04-14 11:01:44 -07:00
json.d Fix incorrect return scope annotations 2022-03-22 18:08:31 +00:00
mathspecial.d
meta.d Use alias assignment in staticMap (#8039) 2021-10-26 22:06:41 +00:00
mmfile.d std.mmfile: Add testmmfile from dmd testsuite as a unittest 2021-08-26 12:17:32 +00:00
numeric.d Merge pull request #7975 from ibuclaw/numeric/lcm 2021-04-22 15:36:55 +08:00
outbuffer.d Add custom fill value to std.outbuffer.OutBuffer class 2022-04-29 12:57:10 +02:00
package.d
parallelism.d Add preliminary support for GNU/Hurd 2022-03-22 14:11:33 +00:00
path.d Fix std.path unittest returning dangling pointer 2022-04-16 15:59:43 +02:00
process.d Fix 13541 - Replace usages of sysErrorString` with a helper function 2022-03-28 01:01:25 +02:00
random.d std.random: Fix test for version(X32) targets 2021-11-30 13:25:09 +00:00
signals.d Issue 19842 - only class member functions must be used be used as slots 2021-07-13 10:33:38 +00:00
socket.d Fix 13541 - Replace usages of sysErrorString` with a helper function 2022-03-28 01:01:25 +02:00
stdint.d
stdio.d Merge remote-tracking branch 'upstream/stable' into merge_stable 2022-04-01 10:23:49 +02:00
string.d indent multiline param description 2021-09-17 04:20:30 -05:00
sumtype.d [Refactor] Move toCtString to std.conv 2022-03-26 14:04:37 +00:00
system.d Fix Issue 22458 - OpenBSD: Add OpenBSD to std/system.d OS list 2021-10-31 23:19:28 +00:00
traits.d Fix: add missing FunctionAttribute 2022-04-25 15:22:59 +00:00
typecons.d Fix: add missing FunctionAttribute 2022-04-25 15:22:59 +00:00
typetuple.d
uri.d Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
utf.d fix issue 22867 - std.utf.decode changes offset despite error. 2022-03-10 13:08:21 +01:00
uuid.d isSomeChar!(Unqual!T) -> isSomeChar!T 2021-07-24 09:26:46 +00:00
variant.d std.variant: Add Variant unittests for 'null' comparisons 2022-01-10 11:35:15 +00:00
xml.d Make phobos compile with pure-scope fix 2021-12-23 18:52:04 +01:00
zip.d std.zip: Remove declarations with expired deprecations 2022-02-15 14:54:28 +01:00
zlib.d