HomeSort by relevance Sort by last modified time
    Searched refs:SizeOf (Results 1 - 25 of 44) sorted by null

1 2

  /libcore/luni/src/main/java/libcore/io/
SizeOf.java 19 public final class SizeOf {
27 private SizeOf() {
HeapBufferIterator.java 63 position += SizeOf.INT;
68 final int byteCount = intCount * SizeOf.INT;
69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needsSwap);
75 position += SizeOf.SHORT;
NioBufferIterator.java 61 position += SizeOf.INT;
67 position += SizeOf.INT * intCount;
72 position += SizeOf.SHORT;
  /dalvik/dx/src/com/android/dx/dex/
SizeOf.java 19 public final class SizeOf {
20 private SizeOf() {}
  /libcore/luni/src/main/java/java/nio/
CharToByteBufferAdapter.java 19 import libcore.io.SizeOf;
45 super(byteBuffer.capacity() / SizeOf.CHAR);
66 byteBuffer.limit(limit * SizeOf.CHAR);
67 byteBuffer.position(position * SizeOf.CHAR);
91 return byteBuffer.getChar(position++ * SizeOf.CHAR);
97 return byteBuffer.getChar(index * SizeOf.CHAR);
102 byteBuffer.limit(limit * SizeOf.CHAR);
103 byteBuffer.position(position * SizeOf.CHAR);
148 byteBuffer.putChar(position++ * SizeOf.CHAR, c);
155 byteBuffer.putChar(index * SizeOf.CHAR, c)
    [all...]
DoubleToByteBufferAdapter.java 19 import libcore.io.SizeOf;
45 super(byteBuffer.capacity() / SizeOf.DOUBLE);
66 byteBuffer.limit(limit * SizeOf.DOUBLE);
67 byteBuffer.position(position * SizeOf.DOUBLE);
91 return byteBuffer.getDouble(position++ * SizeOf.DOUBLE);
97 return byteBuffer.getDouble(index * SizeOf.DOUBLE);
102 byteBuffer.limit(limit * SizeOf.DOUBLE);
103 byteBuffer.position(position * SizeOf.DOUBLE);
148 byteBuffer.putDouble(position++ * SizeOf.DOUBLE, c);
155 byteBuffer.putDouble(index * SizeOf.DOUBLE, c)
    [all...]
FloatToByteBufferAdapter.java 19 import libcore.io.SizeOf;
44 super(byteBuffer.capacity() / SizeOf.FLOAT);
65 byteBuffer.limit(limit * SizeOf.FLOAT);
66 byteBuffer.position(position * SizeOf.FLOAT);
90 return byteBuffer.getFloat(position++ * SizeOf.FLOAT);
96 return byteBuffer.getFloat(index * SizeOf.FLOAT);
101 byteBuffer.limit(limit * SizeOf.FLOAT);
102 byteBuffer.position(position * SizeOf.FLOAT);
147 byteBuffer.putFloat(position++ * SizeOf.FLOAT, c);
154 byteBuffer.putFloat(index * SizeOf.FLOAT, c)
    [all...]
IntToByteBufferAdapter.java 19 import libcore.io.SizeOf;
45 super(byteBuffer.capacity() / SizeOf.INT);
66 byteBuffer.limit(limit * SizeOf.INT);
67 byteBuffer.position(position * SizeOf.INT);
91 return byteBuffer.getInt(position++ * SizeOf.INT);
97 return byteBuffer.getInt(index * SizeOf.INT);
102 byteBuffer.limit(limit * SizeOf.INT);
103 byteBuffer.position(position * SizeOf.INT);
148 byteBuffer.putInt(position++ * SizeOf.INT, c);
155 byteBuffer.putInt(index * SizeOf.INT, c)
    [all...]
LongToByteBufferAdapter.java 19 import libcore.io.SizeOf;
45 super(byteBuffer.capacity() / SizeOf.LONG);
66 byteBuffer.limit(limit * SizeOf.LONG);
67 byteBuffer.position(position * SizeOf.LONG);
91 return byteBuffer.getLong(position++ * SizeOf.LONG);
97 return byteBuffer.getLong(index * SizeOf.LONG);
102 byteBuffer.limit(limit * SizeOf.LONG);
103 byteBuffer.position(position * SizeOf.LONG);
148 byteBuffer.putLong(position++ * SizeOf.LONG, c);
155 byteBuffer.putLong(index * SizeOf.LONG, c)
    [all...]
ShortToByteBufferAdapter.java 19 import libcore.io.SizeOf;
44 super(byteBuffer.capacity() / SizeOf.SHORT);
65 byteBuffer.limit(limit * SizeOf.SHORT);
66 byteBuffer.position(position * SizeOf.SHORT);
90 return byteBuffer.getShort(position++ * SizeOf.SHORT);
96 return byteBuffer.getShort(index * SizeOf.SHORT);
101 byteBuffer.limit(limit * SizeOf.SHORT);
102 byteBuffer.position(position * SizeOf.SHORT);
147 byteBuffer.putShort(position++ * SizeOf.SHORT, c);
154 byteBuffer.putShort(index * SizeOf.SHORT, c)
    [all...]
HeapByteBuffer.java 20 import libcore.io.SizeOf;
70 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
71 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.CHAR, order.needsSwap);
76 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount);
77 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.DOUBLE, order.needsSwap);
82 int byteCount = checkGetBounds(SizeOf.FLOAT, dst.length, dstOffset, floatCount);
83 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.FLOAT, order.needsSwap);
88 int byteCount = checkGetBounds(SizeOf.INT, dst.length, dstOffset, intCount);
89 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.INT, order.needsSwap);
94 int byteCount = checkGetBounds(SizeOf.LONG, dst.length, dstOffset, longCount)
    [all...]
ReadWriteHeapByteBuffer.java 20 import libcore.io.SizeOf;
120 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
121 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.CHAR, order.needsSwap);
126 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount);
127 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.DOUBLE, order.needsSwap);
132 int byteCount = checkPutBounds(SizeOf.FLOAT, src.length, srcOffset, floatCount);
133 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.FLOAT, order.needsSwap);
138 int byteCount = checkPutBounds(SizeOf.INT, src.length, srcOffset, intCount);
139 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.INT, order.needsSwap);
144 int byteCount = checkPutBounds(SizeOf.LONG, src.length, srcOffset, longCount)
    [all...]
DirectByteBuffer.java 20 import libcore.io.SizeOf;
48 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
54 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount);
60 int byteCount = checkGetBounds(SizeOf.FLOAT, dst.length, dstOffset, floatCount);
66 int byteCount = checkGetBounds(SizeOf.INT, dst.length, dstOffset, intCount);
72 int byteCount = checkGetBounds(SizeOf.LONG, dst.length, dstOffset, longCount);
78 int byteCount = checkGetBounds(SizeOf.SHORT, dst.length, dstOffset, shortCount);
99 int newPosition = position + SizeOf.CHAR;
110 checkIndex(index, SizeOf.CHAR);
116 int newPosition = position + SizeOf.DOUBLE
    [all...]
ReadWriteDirectByteBuffer.java 20 import libcore.io.SizeOf;
107 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
113 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount);
119 int byteCount = checkPutBounds(SizeOf.FLOAT, src.length, srcOffset, floatCount);
125 int byteCount = checkPutBounds(SizeOf.INT, src.length, srcOffset, intCount);
131 int byteCount = checkPutBounds(SizeOf.LONG, src.length, srcOffset, longCount);
137 int byteCount = checkPutBounds(SizeOf.SHORT, src.length, srcOffset, shortCount);
144 int newPosition = position + SizeOf.CHAR;
155 checkIndex(index, SizeOf.CHAR);
162 int newPosition = position + SizeOf.DOUBLE
    [all...]
MappedByteBufferAdapter.java 21 import libcore.io.SizeOf;
153 position += SizeOf.CHAR;
166 position += SizeOf.DOUBLE;
179 position += SizeOf.FLOAT;
192 position += SizeOf.INT;
205 position += SizeOf.LONG;
218 position += SizeOf.SHORT;
269 this.position += SizeOf.CHAR;
284 this.position += SizeOf.DOUBLE;
299 this.position += SizeOf.FLOAT
    [all...]
  /libcore/luni/src/main/java/java/io/
DataOutputStream.java 23 import libcore.io.SizeOf;
180 out.write(scratch, 0, SizeOf.INT);
181 written += SizeOf.INT;
186 out.write(scratch, 0, SizeOf.LONG);
187 written += SizeOf.LONG;
192 out.write(scratch, 0, SizeOf.SHORT);
193 written += SizeOf.SHORT;
DataInputStream.java 24 import libcore.io.SizeOf;
124 Streams.readFully(in, scratch, 0, SizeOf.INT);
164 Streams.readFully(in, scratch, 0, SizeOf.LONG);
169 Streams.readFully(in, scratch, 0, SizeOf.SHORT);
  /dalvik/dx/src/com/android/dx/dex/file/
HeaderItem.java 20 import com.android.dx.dex.SizeOf;
45 return SizeOf.HEADER_ITEM;
72 out.annotate(4, "header_size: " + Hex.u4(SizeOf.HEADER_ITEM));
88 out.writeInt(SizeOf.HEADER_ITEM);
StringIdItem.java 19 import com.android.dx.dex.SizeOf;
81 return SizeOf.STRING_ID_ITEM;
TypeIdItem.java 19 import com.android.dx.dex.SizeOf;
47 return SizeOf.TYPE_ID_ITEM;
MemberIdItem.java 23 import com.android.dx.dex.SizeOf;
47 return SizeOf.MEMBER_ID_ITEM;
  /external/clang/test/SemaTemplate/
instantiate-static-var.cpp 49 static const int value = sizeof(Helper(T()));
63 static const int value = sizeof(typeid(Helper()));
88 struct SizeOf {
89 static const int value = sizeof(T);
93 Y3().Foo(X3<SizeOf<char>::value>());
  /external/llvm/lib/CodeGen/AsmPrinter/
DIE.h 223 /// SizeOf - Return the size of a value in bytes.
225 virtual unsigned SizeOf(AsmPrinter *AP, unsigned Form) const = 0;
265 /// SizeOf - Determine size of integer value in bytes.
267 virtual unsigned SizeOf(AsmPrinter *AP, unsigned Form) const;
290 /// SizeOf - Determine size of string value in bytes.
292 virtual unsigned SizeOf(AsmPrinter *AP, unsigned /*Form*/) const {
293 return Str.size() + sizeof(char); // sizeof('\0');
321 /// SizeOf - Determine size of label value in bytes.
323 virtual unsigned SizeOf(AsmPrinter *AP, unsigned Form) const
    [all...]
DIE.cpp 210 /// SizeOf - Determine size of integer value in bytes.
212 unsigned DIEInteger::SizeOf(AsmPrinter *AP, unsigned Form) const {
216 case dwarf::DW_FORM_data1: return sizeof(int8_t);
218 case dwarf::DW_FORM_data2: return sizeof(int16_t);
220 case dwarf::DW_FORM_data4: return sizeof(int32_t);
222 case dwarf::DW_FORM_data8: return sizeof(int64_t);
263 AP->OutStreamer.EmitSymbolValue(Label, SizeOf(AP, Form), 0/*AddrSpace*/);
266 /// SizeOf - Determine size of label value in bytes.
268 unsigned DIELabel::SizeOf(AsmPrinter *AP, unsigned Form) const {
286 AP->EmitLabelDifference(LabelHi, LabelLo, SizeOf(AP, Form))
    [all...]
  /libcore/luni/src/main/java/java/nio/charset/
ModifiedUtf8.java 23 import libcore.io.SizeOf;
120 byte[] result = new byte[SizeOf.SHORT + utfCount];
122 ModifiedUtf8.encode(result, SizeOf.SHORT, s);

Completed in 264 milliseconds

1 2