 
            
            
            
            
                13 Dec
                
                    2011
                
            
            
                13 Dec
                
                '11
                
            
            
            
        
    
                2:51 p.m.
            
        
- size_t buffer_size;
- size_t fragment_size;
Can we define buffer_size and fragment_size as unsigned items?
size_t is unsigned.
But, it needs consideration whether size_t is the best choice, since size_t is basically a long, thus its size is different between 32bit and 64bit architectures. This may lead to mess in many cases when you think of overlapping.
Sorry for my mess on size_t. I think the assumption here is 32 bits. Should u32 be fine here?