Might be worth checking that offset + count <= bytes.length (in a separate PR).