Lines Matching full:bytes

48                               ArrayRef<uint8_t> Bytes, uint64_t Address,
52 ArrayRef<uint8_t> Bytes,
78 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) {
79 if (Size >= Bytes.size())
81 auto V = Bytes[Size];
86 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size,
90 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N,
91 Bytes.data() + Bytes.size(), &Error)
92 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N,
93 Bytes.data() + Bytes.size(),
102 ArrayRef<uint8_t> Bytes, bool Signed) {
104 if (!nextLEB(Val, Bytes, Size, Signed))
111 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) {
112 if (Size + sizeof(T) > Bytes.size())
115 support::endian::read<T, llvm::endianness::little>(Bytes.data() + Size);
128 ArrayRef<uint8_t> Bytes,
134 if (!nextLEB(FunctionCount, Bytes, Size, false))
140 if (!nextLEB(BodySize, Bytes, Size, false) ||
141 !nextLEB(LocalEntryCount, Bytes, Size, false))
147 if (!nextLEB(Count, Bytes, Size, false) ||
148 !nextLEB(Type, Bytes, Size, false))
163 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/,
167 int Opc = nextByte(Bytes, Size);
184 if (!nextLEB(PrefixedOpc, Bytes, Size, false))
211 if (!parseLEBImmediate(MI, Size, Bytes, false))
218 if (!parseLEBImmediate(MI, Size, Bytes, true))
226 if (!nextLEB(Val, Bytes, Size, true))
249 if (!parseImmediate<float>(MI, Size, Bytes))
254 if (!parseImmediate<double>(MI, Size, Bytes))
260 if (!parseImmediate<uint8_t>(MI, Size, Bytes))
265 if (!parseImmediate<uint16_t>(MI, Size, Bytes))
270 if (!parseImmediate<uint32_t>(MI, Size, Bytes))
275 if (!parseImmediate<uint64_t>(MI, Size, Bytes))
281 if (!nextLEB(TargetTableLen, Bytes, Size, false))
284 if (!parseLEBImmediate(MI, Size, Bytes, false))
288 if (!parseLEBImmediate(MI, Size, Bytes, false))