The writeBlock and writePage methods have a void* argument for the buffer to read from. Since this buffer will not be written to, it should really be typed const void*. Without this, code that does handle a const pointer cannot call these methods on such a buffer without doing a typecast (that reduces the type safety provided by the compiler).
The
writeBlock
andwritePage
methods have avoid*
argument for the buffer to read from. Since this buffer will not be written to, it should really be typedconst void*
. Without this, code that does handle a const pointer cannot call these methods on such a buffer without doing a typecast (that reduces the type safety provided by the compiler).