Source/WebCore/loader/cache/disk_cache/cache_entry_impl.cpp
void ClearInvalidData(char* buffer, int offset, int valid_len)
{
    //  DCHECK(offset >= 0);
    //  DCHECK(valid_len >= 0);
    //  DCHECK(disk_cache::kMaxBlockSize >= offset + valid_len);
    if (offset)
        memset(buffer, 0, offset);
    int end = disk_cache::kMaxBlockSize - offset - valid_len;
    if (end)
        memset(buffer + offset + valid_len, 0, end);
}
// Clears buffer before offset and after valid_len, knowing that the size of
// buffer is kMaxBlockSize.
Clears buffer before offset and after valid_len, knowing that the size of
buffer is kMaxBlockSize.
Clears buffer before offset and after valid_len knowing that the size of buffer is kMaxBlockSize .
void ClearInvalidData(char* buffer, int offset, int valid_len)
{
    if (offset)
        memset(buffer, 0, offset);
    int end = disk_cache::kMaxBlockSize - offset - valid_len;
    if (end)
        memset(buffer + offset + valid_len, 0, end);
}
void ClearInvalidData ( char * buffer , int offset , int valid_len ) { if ( offset ) memset ( buffer , 0 , offset ) ; int end = disk_cache :: kMaxBlockSize - offset - valid_len ; if ( end ) memset ( buffer + offset + valid_len , 0 , end ) ; }
Clears buffer before offset and after valid_len, knowing that the size of
buffer is kMaxBlockSize.
Clears buffer before offset and after valid_len knowing that the size of buffer is kMaxBlockSize .
//  DCHECK(offset >= 0); //  DCHECK(valid_len >= 0); //  DCHECK(disk_cache::kMaxBlockSize >= offset + valid_len);