Fixed linter issue on style

This commit is contained in:
Carsten Schlote 2022-04-29 17:26:56 +02:00
parent cab5be6925
commit ad93dd0305
2 changed files with 9 additions and 9 deletions

View file

@ -30,13 +30,13 @@ value for padding to the requested alignment boundary.
-------
OutBuffer buf = new OutBuffer();
buf.write(cast(ubyte)1);
buf.write(cast(ubyte) 1);
buf.align2(0x55);
assert(buf.toBytes() == "\x01\x55");
buf.write(cast(ubyte)2);
buf.write(cast(ubyte) 2);
buf.align4(0x55);
assert(buf.toBytes() == "\x01\x55\x02\x55");
buf.write(cast(ubyte)3);
buf.write(cast(ubyte) 3);
buf.alignSize(8, 0x55);
assert(buf.toBytes() == "\x01\x55\x02\x55\x03\x55\x55\x55");
-------

View file

@ -225,13 +225,13 @@ class OutBuffer
@safe unittest
{
OutBuffer buf = new OutBuffer();
buf.write(cast(ubyte)1);
buf.write(cast(ubyte) 1);
buf.align2();
assert(buf.toBytes() == "\x01\x00");
buf.write(cast(ubyte)2);
buf.write(cast(ubyte) 2);
buf.align4();
assert(buf.toBytes() == "\x01\x00\x02\x00");
buf.write(cast(ubyte)3);
buf.write(cast(ubyte) 3);
buf.alignSize(8);
assert(buf.toBytes() == "\x01\x00\x02\x00\x03\x00\x00\x00");
}
@ -239,13 +239,13 @@ class OutBuffer
@safe unittest
{
OutBuffer buf = new OutBuffer();
buf.write(cast(ubyte)1);
buf.write(cast(ubyte) 1);
buf.align2(0x55);
assert(buf.toBytes() == "\x01\x55");
buf.write(cast(ubyte)2);
buf.write(cast(ubyte) 2);
buf.align4(0x55);
assert(buf.toBytes() == "\x01\x55\x02\x55");
buf.write(cast(ubyte)3);
buf.write(cast(ubyte) 3);
buf.alignSize(8, 0x55);
assert(buf.toBytes() == "\x01\x55\x02\x55\x03\x55\x55\x55");
}