clear should reset ByteArray position