Pedro de Oliveira
cb93ab20ee
Rustfmt
2023-04-23 01:02:11 +01:00
Pedro de Oliveira
32ea4e5503
Cleanup big match statement
2023-04-23 00:38:14 +01:00
Pedro de Oliveira
18fbcfa71f
Replace read with read_exact
2023-04-23 00:36:59 +01:00
Pedro de Oliveira
858ac2e2a5
Cleanup
2023-04-23 00:19:49 +01:00
Pedro de Oliveira
6e442ef433
Remove empty line.
2023-04-23 00:18:21 +01:00
Pedro de Oliveira
3a0c6671fb
Remove unneeded use.
2023-04-23 00:18:08 +01:00
Pedro de Oliveira
0db495d66f
Shut up clippy.
2023-04-23 00:17:41 +01:00
Pedro de Oliveira
9bf1197fa1
Update dependencies
2023-04-23 00:11:25 +01:00
Pedro de Oliveira
2c031a99a0
Cleanups, Start to implement unit tests.
2023-04-22 21:37:04 +01:00
Pedro de Oliveira
a0ace81f92
Create checksum function and remove duplicate code.
2023-04-22 20:29:42 +01:00
Pedro de Oliveira
ad50081574
Cleanups
2023-04-22 20:21:38 +01:00
Pedro de Oliveira
0a0f5f5ed4
Remove SeekFrom include.
...
Make the two VOC Signatures const.
2023-04-22 19:09:29 +01:00
Pedro de Oliveira
61513b5a5d
Change fp.seek(SeekFrom::Current(0)) to fp.stream_position()
2023-04-22 18:58:21 +01:00
Pedro de Oliveira
84af3013b9
Merge remote-tracking branch 'origin/master'
2022-11-14 20:53:25 +00:00
Pedro de Oliveira
59cbcff192
* VocFile
...
- Dont panic on invalid version checksum
- Add new field to store checksum status
* BlockInfo
- New struct
- Contains start and end address of the block in the file
- Contains a get_size() function
* Block Trait
- Add a get_info() function that returns a BlockInfo
* Main
- Prettify the *info* command.
- Now shows the file version, checksum, and info about all the blocks.
2022-11-14 20:53:11 +00:00
Pedro de Oliveira
a7273184f9
* VocFile
...
- Dont panic on invalid version checksum
- Add new field to store checksum status
* BlockInfo
- New struct
- Contains start and end address of the block in the file
- Contains a get_size() function
* Block Trait
- Add a get_info() function that returns a BlockInfo
* Main
Prettify the *info* command.
Now shows the file version, checksum, and info about all the blocks.
2022-11-14 20:51:24 +00:00
Pedro de Oliveira
1dd3997587
Change all i32 to u32.
2022-11-13 17:32:08 +00:00
Pedro de Oliveira
d6737050ca
Fix bug in RepeatStart, implement as Silence.
2022-11-13 17:07:52 +00:00
Pedro de Oliveira
108336e5a0
clippy fixes.
2022-11-13 16:54:39 +00:00
Pedro de Oliveira
bf3c774735
Create a from_stream() in each Block struct and move stuff around.
2022-11-13 16:44:13 +00:00
Pedro de Oliveira
89c335fc7f
Implement the 7 first Block Types of a VOC file.
2022-11-13 06:14:51 +00:00
Pedro de Oliveira
5d4edf3247
Oops.
2022-11-13 05:38:12 +00:00
Pedro de Oliveira
c9aa7c30ef
Start to remove size from structs and use data.len() instead.
2022-11-13 05:35:59 +00:00
Pedro de Oliveira
33484bfa97
Add to_file() to VocFile
2022-11-13 05:08:00 +00:00
Pedro de Oliveira
d6f620dfd8
clippy cleanup
2022-11-13 04:58:21 +00:00
Pedro de Oliveira
83d1a218b1
Add to_bytes() to VocFile.
...
Add clap argument parser.
2022-11-13 04:49:42 +00:00
Pedro de Oliveira
48ee1872b8
Move stuff around
2022-11-13 03:25:46 +00:00
Pedro de Oliveira
55560f4f22
Move stuff around
2022-11-13 03:22:21 +00:00
Pedro de Oliveira
1ef6f01281
Working
2022-11-13 03:17:26 +00:00
Pedro de Oliveira
6b4b653f66
Working
2022-11-13 03:16:28 +00:00
Pedro de Oliveira
739b249776
Working
2022-11-13 03:13:12 +00:00
Pedro de Oliveira
8e7c90a770
Working
2022-11-13 03:12:51 +00:00
Pedro de Oliveira
d55935c54b
Working
2022-11-13 03:11:29 +00:00
Pedro de Oliveira
9eab9dd9a3
Working
2022-11-13 02:52:58 +00:00
Pedro de Oliveira
23bf6da142
Working
2022-11-13 02:41:22 +00:00
Pedro de Oliveira
4ae4a9ebd8
Working
2022-11-13 00:44:15 +00:00
Pedro de Oliveira
735cd11a16
First commit
2022-11-09 00:47:32 +00:00