Skip to content

Commit fb3ee35

Browse files
author
polycursegames
authored
docs: Fixed spelling (#322)
1 parent 54f71f0 commit fb3ee35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_docs/advanced-topics/bitwriter-bitreader-bitstream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MyEnum value = (Myenum)reader.ReadBits(3);
4545
```
4646

4747
#### Performance concideration
48-
When the stream is not aligned, (BitAlgiend == false, this occurs when writing bits that does fill the whole byte, or when writing bools as they are written as bits), performance is decreased for each write and read. This is only a big concern if you are about to write a large amount of data after not being aligned. To solve this, the BitWriter allows you to "WritePadBits" and the BitReader then lets you skip those bits with "SkipPadBits" to align the stream to the nearest byte.
48+
When the stream is not aligned, (BitAligned == false, this occurs when writing bits that does fill the whole byte, or when writing bools as they are written as bits), performance is decreased for each write and read. This is only a big concern if you are about to write a large amount of data after not being aligned. To solve this, the BitWriter allows you to "WritePadBits" and the BitReader then lets you skip those bits with "SkipPadBits" to align the stream to the nearest byte.
4949

5050
```csharp
5151
writer.WriteBool(true); //Now the stream is no longer aligned. Every byte has to be offset by 1 bit.
@@ -71,4 +71,4 @@ using (PooledBitWriter writer = PooledBitWriter.Get(myStreamToWriteTo))
7171
{
7272
// Write here
7373
}
74-
```
74+
```

0 commit comments

Comments
 (0)