@Override
    public void truncate(long length) throws SQLException {
        assertNotFreed();
        if (length > len) {
            throw newIllegalArgumentExceptionRange("Length", 0, len, length);
        } else if ((int) length == 0) {
            buf = new byte[0];
            len = length;
        } else {
            len = length;
            buf = getBytes(1, (int) len);
        }
    }
A standard implementation of the Blob interface.
<p>
By having an implementation, we do not have to
require usage of the java.sql.rowset module.

@author Per Minborg
@since 3.2.0
runtime-parent/runtime-typemapper/src/main/java/com/speedment/runtime/typemapper/largeobject/StandardBlob.java