Lines Matching defs:Bytes
44 ArrayRef<uint8_t> Bytes, uint64_t Address,
50 static bool readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address,
55 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8);
59 static bool readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address,
62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) |
63 ((uint64_t)Bytes[2] << 0) | ((uint64_t)Bytes[3] << 8) |
64 ((uint64_t)Bytes[4] << 48) | ((uint64_t)Bytes[5] << 56) |
65 ((uint64_t)Bytes[6] << 32) | ((uint64_t)Bytes[7] << 40);
69 static bool readInstruction48(ArrayRef<uint8_t> Bytes, uint64_t Address,
72 Insn = ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) |
73 ((uint64_t)Bytes[2] << 32) | ((uint64_t)Bytes[3] << 40) |
74 ((uint64_t)Bytes[4] << 16) | ((uint64_t)Bytes[5] << 24);
78 static bool readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address,
81 Insn = (Bytes[0] << 0) | (Bytes[1] << 8);
297 ArrayRef<uint8_t> Bytes,
301 if (Bytes.size() < 2) {
305 uint8_t DecodeByte = (Bytes[1] & 0xF7) >> 3;
310 if (Bytes.size() < 4) {
315 if (Bytes.size() >= 8) {
318 if (!readInstruction64(Bytes, Address, Size, Insn64))
329 if (!readInstruction32(Bytes, Address, Size, Insn32)) {
335 if (Bytes.size() >= 6) {
338 if (!readInstruction48(Bytes, Address, Size, Insn48))
352 if (!readInstruction16(Bytes, Address, Size, Insn16))