Rename getMaxLength to getByteSize.