Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Math.Pow Pin
Matt T Heffron2-Apr-14 11:50
professionalMatt T Heffron2-Apr-14 11:50 
AnswerRe: Math.Pow Pin
BillWoodruff2-Apr-14 13:36
professionalBillWoodruff2-Apr-14 13:36 
GeneralRe: Math.Pow Pin
Richard Deeming3-Apr-14 0:49
mveRichard Deeming3-Apr-14 0:49 
QuestionZip compression library that supports pausing Pin
REDSERPENT72-Apr-14 2:17
REDSERPENT72-Apr-14 2:17 
AnswerRe: Zip compression library that supports pausing Pin
Dave Kreskowiak2-Apr-14 2:26
mveDave Kreskowiak2-Apr-14 2:26 
GeneralRe: Zip compression library that supports pausing Pin
harold aptroot2-Apr-14 2:45
harold aptroot2-Apr-14 2:45 
GeneralRe: Zip compression library that supports pausing Pin
REDSERPENT72-Apr-14 4:21
REDSERPENT72-Apr-14 4:21 
GeneralRe: Zip compression library that supports pausing Pin
harold aptroot2-Apr-14 4:47
harold aptroot2-Apr-14 4:47 
The ability to resume after abrupt termination is also quite sought-after though
But ok, that simplifies things. All you have to do is save enough of the state of the compressor so that you can load it again - basically, dump the data structures it's using in a file (or wherever you want to leave it). While the compression libraries I know up don't immediately support that, it should be possible to modify them (the ones that come with source, anyway) so that they do.
What you'd actually have to save depends on the compressor, but it might include:
- the index you were at (for input and output)
- the current block type (stored, dynamic tree, static tree), not all of the following will exist for stored blocks
- a chained hash table, used to find back-references (saving is optional, skipping it means worse compression ratio's if you pause/resume)
- a small buffer used to write bits to an underlying system that deals in bytes. May contain more than 7 bits, depends on the implementation
- a table of symbol lengths and symbol patterns, something like 286 entries or so. Doesn't necessarily exist all the time (for example at the start of a block when the compressor doesn't know enough about the symbol frequencies yet)
- misc stuff, and things I've forgotten to mention. And anyway, this covers just the Deflate end of the business, for full ZIP there's more to worry about.
AnswerRe: Zip compression library that supports pausing Pin
Pete O'Hanlon2-Apr-14 4:31
mvePete O'Hanlon2-Apr-14 4:31 
AnswerRe: Zip compression library that supports pausing Pin
Eddy Vluggen2-Apr-14 5:00
professionalEddy Vluggen2-Apr-14 5:00 
QuestionRemove row from datatable Pin
Member 105807701-Apr-14 21:23
Member 105807701-Apr-14 21:23 
AnswerRe: Remove row from datatable Pin
Richard MacCutchan1-Apr-14 22:11
mveRichard MacCutchan1-Apr-14 22:11 
GeneralRe: Remove row from datatable Pin
Eddy Vluggen2-Apr-14 5:00
professionalEddy Vluggen2-Apr-14 5:00 
GeneralRe: Remove row from datatable Pin
Richard MacCutchan2-Apr-14 5:36
mveRichard MacCutchan2-Apr-14 5:36 
QuestionHow to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Member 107057401-Apr-14 20:28
Member 107057401-Apr-14 20:28 
AnswerRe: How to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Bernhard Hiller1-Apr-14 20:42
Bernhard Hiller1-Apr-14 20:42 
AnswerRe: How to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Member 107057402-Apr-14 16:23
Member 107057402-Apr-14 16:23 
GeneralRe: How to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Dave Kreskowiak2-Apr-14 17:32
mveDave Kreskowiak2-Apr-14 17:32 
QuestionHow to develop IE Plugin development and connect TCP socket through javascript? Pin
Damu_SDI1-Apr-14 19:36
Damu_SDI1-Apr-14 19:36 
Questionspliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 17:41
KhanKtk1-Apr-14 17:41 
AnswerRe: spliting sentence on the basis of conjunctions Pin
Kornfeld Eliyahu Peter1-Apr-14 19:55
professionalKornfeld Eliyahu Peter1-Apr-14 19:55 
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk2-Apr-14 0:44
KhanKtk2-Apr-14 0:44 
AnswerRe: spliting sentence on the basis of conjunctions Pin
Bernhard Hiller1-Apr-14 20:49
Bernhard Hiller1-Apr-14 20:49 
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 22:50
KhanKtk1-Apr-14 22:50 
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 22:53
KhanKtk1-Apr-14 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.