Skip to content

Commit

Permalink
Added corrupted/corrected pixel art to README.md
Browse files Browse the repository at this point in the history
Generated by test_pixelart, this is what actual data on-disk might look
like up until correction-failure:

  make test-runner -j && ./scripts/test.py runners/test_runner test_pixelart -v -O-
  • Loading branch information
geky committed Oct 22, 2024
1 parent 1721b80 commit 0d13876
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,46 @@

An example of a CRC-32 based error-correcting block device backed by RAM.

```
corrupted:
' ..:::::::::::.:. .:::....:::.. :.' ''::..:':: '.:.::'.: '':.
.:::::::::::::::::::.. . ::'::::::::...:::.: :'.'::: .' ..:.: :.' '.
'.::::::::::::::::::::::::. ' ::::::::::' . .' ': . :'' . ': .: :. ..:::
.:::::::::::::::::::::::::::. . . ::::'::::: ' . ''.:. ..:. : ::.':.'::. ....
. .:::::::::::::::::::::::::::::: ... :: :'::::::' :.:....:..: . . ' '':.: :
:::::::::::::::::::::::::.:::'' .. '::: ' ''' :..'::'.'''.:'. :''::. ' ' .'..
::::::::::::'::::::::::::::''..:::::'' : .'' ::'. : .:'.'' .'' ' .. ..
:::::::::::::::::::::::'' ..:::::'' . ''' :'.: :'.:. :': .':'..': :.'.
:::::':::::::::::::'' ..:::::'' .' '' .::. . . :: .''::'. '.. ...
..:'::::::::::::::''' ..:::::'' ...:: '' ::..':' :' .....:'' :'. ::.
. :::' :::::::::' ..::::::': ..::::::: . '' .:: :. '.: .''': :: .:.'' :
:::' ':::'' ...:.::::':...:::::::::: ': :.:':: ..: .'' : ::..: .'' :
::' ...::::::'' ..:::::':':::::' ' . . .:' : ''':':'.:..' :'::':.'':
....::::::::' . ::::::::::.::::::' . ::.: :' . '.:. .. .' ...'.:':.'
'::::::::''' :::::::::::::::::::'' ' . :: ::' :' ':' .'...'': ' ':':
'':::::::::::''' . . ' ' ::::. '.'. ::: . . '.' ' '..'
```

```
corrected:
..:::::::::::... .:::....:::.. :.' '':: .:::: '.:.:::.: '':.
.:::::::::::::::::::.. ::::::::::::..:::.: :'.':': .' ..:.: :.' '.
.::::::::::::::::::::::::. ::::::::::' . .' ': . :'' . ': .: :. ..:::
.:::::::::::::::::::::::::::. . :::::::::: ' . ''.:. ..:. : ::.':.'::. ....
.:::::::::::::::::::::::::::::: ... :: :'::::::' :.:....:..: . . ' '':.: :
:::::::::::::::::::::::::::::'' .. '::: ' ''' :..'::'.'''.:'..:''::. ' ' .'..
:::::::::::::::::::::::::::''..::::: ' : .'' ::'. : .::.'' .'' ' .. ..
:::::::::::::::::::::::'' ..:::::'' ''' :'.: ''.:. :': :':'..': :.'.
:::::::::::::::::::'' ..:::::'' . ' .::. . . :: .''::'. '.. ...
..: ::::::::::::::''' ..:::::'' ..::: '' ::..':' :' .....:'' :'. ::.
..:::' :::::::::'' ..::::::'' ..::::::: '' .:: :. '.: .''': :: .:.'' :
:::' ':::'' ...::::::''...:::::::::: ': ' :':: ..: .'' : ::..: .'' :
::' ...::::::'' ..:::::::::::::' . .:' : ''':':'.:..' :'::':.'':
....:::::::'' ..:::::::::::::::::' ::.: :' . '.:. .. .' ...'.:':.'
'::::::::''' :::::::::::::::::::'' . :: ::' :' ':' .'...'': ' ':':
'':::::::::::''' :::'. '.'. ::: . . '.' ' '..'
```

Often overlooked, the humble [CRC][crc] can already provide a simple form
of error detection and correction, capable of repairing a handful of
bit-errors.
Expand Down

0 comments on commit 0d13876

Please sign in to comment.