Lines Matching refs:data

60     private ByteBuffer data;  field in Dex
74 public Dex(byte[] data) throws IOException { in Dex() argument
75 this(ByteBuffer.wrap(data)); in Dex()
78 private Dex(ByteBuffer data) throws IOException { in Dex() argument
79 this.data = data; in Dex()
80 this.data.order(ByteOrder.LITTLE_ENDIAN); in Dex()
88 this.data = ByteBuffer.wrap(new byte[byteCount]); in Dex()
89 this.data.order(ByteOrder.LITTLE_ENDIAN); in Dex()
139 this.data = ByteBuffer.wrap(bytesOut.toByteArray()); in loadFrom()
140 this.data.order(ByteOrder.LITTLE_ENDIAN); in loadFrom()
152 ByteBuffer data = this.data.duplicate(); // positioned ByteBuffers aren't thread safe in writeTo() local
153 data.clear(); in writeTo()
154 while (data.hasRemaining()) { in writeTo()
155 int count = Math.min(buffer.length, data.remaining()); in writeTo()
156 data.get(buffer, 0, count); in writeTo()
172 if (position < 0 || position >= data.capacity()) { in open()
174 + " length=" + data.capacity()); in open()
176 ByteBuffer sectionData = data.duplicate(); in open()
179 sectionData.limit(data.capacity()); in open()
188 ByteBuffer sectionData = data.duplicate(); in appendSection()
198 return data.capacity(); in getLength()
209 ByteBuffer data = this.data.duplicate(); // positioned ByteBuffers aren't thread safe in getBytes() local
210 byte[] result = new byte[data.capacity()]; in getBytes()
211 data.position(0); in getBytes()
212 data.get(result); in getBytes()
280 ByteBuffer data = this.data.duplicate(); // positioned ByteBuffers aren't thread safe in computeSignature() local
281 data.limit(data.capacity()); in computeSignature()
282 data.position(SIGNATURE_OFFSET + SIGNATURE_SIZE); in computeSignature()
283 while (data.hasRemaining()) { in computeSignature()
284 int count = Math.min(buffer.length, data.remaining()); in computeSignature()
285 data.get(buffer, 0, count); in computeSignature()
297 ByteBuffer data = this.data.duplicate(); // positioned ByteBuffers aren't thread safe in computeChecksum() local
298 data.limit(data.capacity()); in computeChecksum()
299 data.position(CHECKSUM_OFFSET + CHECKSUM_SIZE); in computeChecksum()
300 while (data.hasRemaining()) { in computeChecksum()
301 int count = Math.min(buffer.length, data.remaining()); in computeChecksum()
302 data.get(buffer, 0, count); in computeChecksum()
324 return data.getInt(position); in descriptorIndexFromTypeIndex()
330 private final ByteBuffer data; field in Dex.Section
333 private Section(String name, ByteBuffer data) { in Section() argument
335 this.data = data; in Section()
336 this.initialPosition = data.position(); in Section()
340 return data.position(); in getPosition()
344 return data.getInt(); in readInt()
348 return data.getShort(); in readShort()
357 return data.get(); in readByte()
362 data.get(result); in readByteArray()
402 int savedPosition = data.position(); in readString()
403 int savedLimit = data.limit(); in readString()
404 data.position(offset); in readString()
405 data.limit(data.capacity()); in readString()
417 data.position(savedPosition); in readString()
418 data.limit(savedLimit); in readString()
491 Section triesSection = open(data.position()); in readCode()
504 int baseOffset = data.position(); in readCatchHandlers()
508 int offset = data.position() - baseOffset; in readCatchHandlers()
589 int end = data.position(); in getBytesFrom()
591 data.position(start); in getBytesFrom()
592 data.get(result); in getBytesFrom()
598 int start = data.position(); in readAnnotation()
604 int start = data.position(); in readEncodedArray()
613 data.position(data.position() + count); in skip()
620 data.position((data.position() + 3) & ~3); in alignToFourBytes()
627 while ((data.position() & 3) != 0) { in alignToFourBytesWithZeroFill()
628 data.put((byte) 0); in alignToFourBytesWithZeroFill()
633 if ((data.position() & 3) != 0) { in assertFourByteAligned()
639 this.data.put(bytes); in write()
644 data.put((byte) b); in writeByte()
648 data.putShort(i); in writeShort()
666 data.putInt(i); in writeInt()
673 throw new DexException("Section limit " + data.limit() + " exceeded by " + name); in writeUleb128()
681 throw new DexException("Section limit " + data.limit() + " exceeded by " + name); in writeSleb128()
709 return data.position() - initialPosition; in used()