As the row count and last insert ID are length-encoded integers, they need to be handled with the correct functions.