Timeline for decompress and get size of file in c# (bzip2)
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5 at 13:02 | answer | added | Charlieface | timeline score: 0 | |
Jul 5 at 9:40 | comment | added | jmcilhinney | Please read this and edit your question accordingly. We should be able to run the code you provide and see the errant behaviour you describe, so that would involve starting with some data of a known size to compare to. | |
Jul 5 at 6:33 | review | Close votes | |||
Jul 9 at 0:02 | |||||
Jul 5 at 6:13 | comment | added | jmcilhinney |
Why are you using a StreamReader to read text and then counting bytes read? Text is not bytes. It's characters. If you want to know how many bytes there are then you should be reading the raw data. Character count and byte count will only be the same if every character is one byte, which may be the case but probably isn't.
|
|
Jul 5 at 6:09 | answer | added | Rage | timeline score: 0 | |
Jul 5 at 6:05 | comment | added | Karl-Johan Sjögren | In what way are the results wrong? Is it to short? To long? If so, by how much? And what are you comparing the result to? | |
Jul 5 at 6:03 | history | edited | Karl-Johan Sjögren | CC BY-SA 4.0 |
Fixed code formatting
|
S Jul 5 at 5:58 | review | First questions | |||
Jul 5 at 13:02 | |||||
S Jul 5 at 5:58 | history | asked | Jakub Pal | CC BY-SA 4.0 | created from wizard |