Searched refs:Bytes (Results 1 - 25 of 90) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/primitives/
H A DBytesTest.java32 * Unit test for {@link Bytes}.
48 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value));
53 assertFalse(Bytes.contains(EMPTY, (byte) 1));
54 assertFalse(Bytes.contains(ARRAY1, (byte) 2));
55 assertFalse(Bytes.contains(ARRAY234, (byte) 1));
56 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1));
57 assertTrue(Bytes.contains(ARRAY234, (byte) 2));
58 assertTrue(Bytes.contains(ARRAY234, (byte) 3));
59 assertTrue(Bytes.contains(ARRAY234, (byte) 4));
63 assertEquals(-1, Bytes
[all...]
/external/llvm/include/llvm/Support/
H A DStringRefMemoryObject.h26 StringRef Bytes; member in class:llvm::StringRefMemoryObject
29 StringRefMemoryObject(StringRef Bytes, uint64_t Base = 0) argument
30 : Bytes(Bytes), Base(Base) {}
33 uint64_t getExtent() const override { return Bytes.size(); }
H A DStreamableMemoryObject.h138 mutable std::vector<unsigned char> Bytes; member in class:llvm::StreamingMemoryObject
140 mutable size_t BytesRead; // Bytes read from stream
141 size_t BytesSkipped;// Bytes skipped at start of stream (e.g. wrapper/header)
153 Bytes.resize(BytesRead + BytesSkipped + kChunkSize);
154 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped],
/external/llvm/lib/Support/
H A Dcircular_raw_ostream.cpp26 unsigned Bytes = local
28 memcpy(Cur, Ptr, Bytes);
29 Size -= Bytes;
30 Cur += Bytes;
H A DStringRefMemoryObject.cpp17 *Byte = Bytes[Addr - Base];
27 memcpy(Buf, Bytes.data() + Offset, Size);
H A DStreamableMemoryObject.cpp104 *ptr = Bytes[address + BytesSkipped];
112 memcpy(buf, &Bytes[address + BytesSkipped], size);
125 Bytes.reserve(size);
136 Bytes(kChunkSize), Streamer(streamer), BytesRead(0), BytesSkipped(0),
138 BytesRead = streamer->GetBytes(&Bytes[0], kChunkSize);
/external/llvm/tools/llvm-mc/
H A DDisassembler.cpp37 const ByteArrayTy &Bytes; member in class:__anon26403::VectorMemoryObject
39 VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {}
42 uint64_t getExtent() const override { return Bytes.size(); }
47 *Byte = Bytes[Addr].first;
54 const ByteArrayTy &Bytes,
59 VectorMemoryObject memoryObject(Bytes);
65 for (Index = 0; Index < Bytes.size(); Index += Size) {
73 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
86 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
53 PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, SourceMgr &SM, raw_ostream &Out, MCStreamer &Streamer, bool InAtomicBlock, const MCSubtargetInfo &STI) argument
/external/llvm/lib/DebugInfo/
H A DDWARFDebugLoc.cpp66 unsigned Bytes = data.getU16(&Offset); local
68 StringRef str = data.getData().substr(Offset, Bytes);
69 Offset += Bytes;
100 unsigned Bytes = data.getU16(&Offset); local
102 StringRef str = data.getData().substr(Offset, Bytes);
103 Offset += Bytes;
/external/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp96 uint64_t Bytes = CSize->getZExtValue(); local
97 if (Bytes == 0)
106 Bytes <= 16 && CountPopulation_64(Bytes) <= 2 :
107 Bytes <= 4) {
108 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(Bytes);
109 unsigned Size2 = Bytes - Size1;
123 if (Bytes <= 2) {
126 if (Bytes
197 uint64_t Bytes = CSize->getZExtValue(); local
[all...]
/external/elfutils/0.153/libelf/
H A Dgelf_xlate.c112 #define INLINE2(Bytes, FName, TName) \
113 INLINE3 (Bytes, FName, TName)
114 #define INLINE3(Bytes, FName, TName) \
117 switch (Bytes) \
135 dest += Bytes; \
136 ptr += Bytes; \
144 ptr -= Bytes; \
145 dest -= Bytes; \
/external/chromium_org/ui/gl/
H A Dgl_image_shared_memory.cc41 if (!duped_shared_memory->Map(Bytes())) {
H A Dgl_image_memory.h44 size_t Bytes() const;
/external/guava/guava/src/com/google/common/primitives/
H A DBytes.java47 public final class Bytes { class
48 private Bytes() {} method in class:Bytes
295 && Bytes.indexOf(array, (Byte) target, start, end) != -1;
301 int i = Bytes.indexOf(array, (Byte) target, start, end);
312 int i = Bytes.lastIndexOf(array, (Byte) target, start, end);
359 result = 31 * result + Bytes.hashCode(array[i]);
/external/llvm/lib/Target/ARM/
H A DThumb1RegisterInfo.cpp141 static unsigned calcNumMI(int Opc, int ExtraOpc, unsigned Bytes, argument
147 unsigned ThisVal = (Bytes > Chunk) ? Chunk : Bytes;
148 Bytes -= ThisVal;
155 NumMIs += Bytes / Chunk;
156 if ((Bytes % Chunk) != 0)
173 unsigned Bytes = (unsigned)NumBytes;
174 if (isSub) Bytes = -NumBytes;
175 bool isMul4 = (Bytes & 3) == 0;
196 Bytes
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DLittleEndianDataInputStreamTest.java19 import com.google.common.primitives.Bytes;
73 assertEquals(Bytes.asList(data), Bytes.asList(b));
H A DLittleEndianDataOutputStreamTest.java20 import com.google.common.primitives.Bytes;
146 assertEquals(Bytes.asList(expected), Bytes.asList(actual));
/external/clang/include/clang/AST/
H A DAttr.h66 void* operator new(size_t Bytes, ASTContext &C, argument
68 return ::operator new(Bytes, C, Alignment);
H A DAttrIterator.h26 void *operator new(size_t Bytes, const clang::ASTContext &C,
30 void *operator new[](size_t Bytes, const clang::ASTContext &C,
/external/llvm/include/llvm-c/
H A DDisassembler.h221 * parameter Bytes, and contains at least BytesSize number of bytes. The
228 size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes,
/external/llvm/tools/llvm-objdump/
H A DMachODump.cpp322 StringRef Bytes; local
323 Sections[SectIdx].getContents(Bytes);
324 StringRefMemoryObject memoryObject(Bytes);
408 DumpBytes(StringRef(Bytes.data() + Index, Length));
411 DumpDataInCode(Bytes.data() + Index, Length, Kind);
417 DumpBytes(StringRef(Bytes.data() + Index, Size));
451 DumpBytes(StringRef(Bytes.data() + Index, InstSize));
/external/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp124 uint8_t *Bytes; member in class:__anon25879::DisasmMemoryObject
129 Bytes(bytes), Size(size), BasePC(basePC) {}
137 *Byte = Bytes[Addr - BasePC];
252 // instruction are specified in the parameter Bytes, and contains at least
261 size_t LLVMDisasmInstruction(LLVMDisasmContextRef DCR, uint8_t *Bytes, argument
265 // Wrap the pointer to the Bytes, BytesSize and PC in a MemoryObject.
266 DisasmMemoryObject MemoryObject(Bytes, BytesSize, PC);
/external/chromium_org/third_party/skia/src/images/
H A DSkMovie_gif.cpp73 const uint8_t* b = (const uint8_t*)image->ExtensionBlocks[j].Bytes;
229 bool has_transparency = ((eb->Bytes[0] & 1) == 1);
231 transparent = (unsigned char)eb->Bytes[3];
264 int disposal = ((eb->Bytes[0] >> 2) & 7);
281 *trans = ((eb->Bytes[0] & 1) == 1);
282 *disposal = ((eb->Bytes[0] >> 2) & 7);
/external/llvm/lib/Target/SystemZ/Disassembler/
H A DSystemZDisassembler.cpp296 uint8_t Bytes[6];
298 if (Region.readBytes(Address, 2, Bytes) == -1)
303 if (Bytes[0] < 0x40) {
306 } else if (Bytes[0] < 0xc0) {
315 if (Size > 2 && Region.readBytes(Address + 2, Size - 2, Bytes + 2) == -1)
321 Inst = (Inst << 8) | Bytes[I];
/external/skia/src/images/
H A DSkMovie_gif.cpp73 const uint8_t* b = (const uint8_t*)image->ExtensionBlocks[j].Bytes;
229 bool has_transparency = ((eb->Bytes[0] & 1) == 1);
231 transparent = (unsigned char)eb->Bytes[3];
264 int disposal = ((eb->Bytes[0] >> 2) & 7);
281 *trans = ((eb->Bytes[0] & 1) == 1);
282 *disposal = ((eb->Bytes[0] >> 2) & 7);
/external/giflib/
H A Dgifalloc.c239 ep->Bytes = (GifByteType *)malloc(ep->ByteCount);
240 if (ep->Bytes == NULL)
244 memcpy(ep->Bytes, ExtData, Len);
262 (void)free((char *)ep->Bytes);

Completed in 830 milliseconds

1234