HomeSort by relevance Sort by last modified time
    Searched refs:off (Results 101 - 125 of 3992) sorted by null

1 2 3 45 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/util/jar/
JarOutputStream.java 137 private static int get16(byte[] b, int off) {
138 return Byte.toUnsignedInt(b[off]) | ( Byte.toUnsignedInt(b[off+1]) << 8);
145 private static void set16(byte[] b, int off, int value) {
146 b[off+0] = (byte)value;
147 b[off+1] = (byte)(value >> 8);
  /libcore/ojluni/src/main/java/java/util/zip/
Adler32.java 67 * if {@code off} is negative, or {@code len} is negative,
68 * or {@code off+len} is greater than the length of the
71 public void update(byte[] b, int off, int len) {
75 if (off < 0 || len < 0 || off > b.length - len) {
78 adler = updateBytes(adler, b, off, len);
138 private native static int updateBytes(int adler, byte[] b, int off,
141 int off, int len);
CRC32.java 65 * if {@code off} is negative, or {@code len} is negative,
66 * or {@code off+len} is greater than the length of the
69 public void update(byte[] b, int off, int len) {
73 if (off < 0 || len < 0 || off > b.length - len) {
76 crc = updateBytes(crc, b, off, len);
135 private native static int updateBytes(int crc, byte[] b, int off, int len);
138 int off, int len);
  /external/libunwind/src/x86/
Gos-linux.c 147 unw_word_t addr = c->sigcontext_addr, fpstate_addr, off; local
168 case UNW_X86_GS: off = LINUX_SC_GS_OFF; break;
169 case UNW_X86_FS: off = LINUX_SC_FS_OFF; break;
170 case UNW_X86_ES: off = LINUX_SC_ES_OFF; break;
171 case UNW_X86_DS: off = LINUX_SC_DS_OFF; break;
172 case UNW_X86_EDI: off = LINUX_SC_EDI_OFF; break;
173 case UNW_X86_ESI: off = LINUX_SC_ESI_OFF; break;
174 case UNW_X86_EBP: off = LINUX_SC_EBP_OFF; break;
175 case UNW_X86_ESP: off = LINUX_SC_ESP_OFF; break;
176 case UNW_X86_EBX: off = LINUX_SC_EBX_OFF; break
    [all...]
Gos-freebsd.c 144 unw_word_t addr = c->sigcontext_addr, off, xmm_off; local
177 off = 0; /* shut gcc warning */
180 case UNW_X86_GS: off = FREEBSD_UC_MCONTEXT_GS_OFF; break;
181 case UNW_X86_FS: off = FREEBSD_UC_MCONTEXT_FS_OFF; break;
182 case UNW_X86_ES: off = FREEBSD_UC_MCONTEXT_ES_OFF; break;
183 case UNW_X86_DS: off = FREEBSD_UC_MCONTEXT_SS_OFF; break;
184 case UNW_X86_EDI: off = FREEBSD_UC_MCONTEXT_EDI_OFF; break;
185 case UNW_X86_ESI: off = FREEBSD_UC_MCONTEXT_ESI_OFF; break;
186 case UNW_X86_EBP: off = FREEBSD_UC_MCONTEXT_EBP_OFF; break;
187 case UNW_X86_ESP: off = FREEBSD_UC_MCONTEXT_ESP_OFF; break
    [all...]
  /prebuilts/go/darwin-x86/src/debug/dwarf/
unit.go 17 off Offset // byte offset of data within the aggregate info
61 u.base = b.off
64 dataOff := b.off
86 u.off = b.off
87 u.data = b.bytes(int(n - (b.off - dataOff)))
95 // offsetToUnit returns the index of the unit containing offset off.
97 func (d *Data) offsetToUnit(off Offset) int {
98 // Find the unit after off
100 return d.unit[i].off > of
    [all...]
  /prebuilts/go/linux-x86/src/debug/dwarf/
unit.go 17 off Offset // byte offset of data within the aggregate info
61 u.base = b.off
64 dataOff := b.off
86 u.off = b.off
87 u.data = b.bytes(int(n - (b.off - dataOff)))
95 // offsetToUnit returns the index of the unit containing offset off.
97 func (d *Data) offsetToUnit(off Offset) int {
98 // Find the unit after off
100 return d.unit[i].off > of
    [all...]
  /prebuilts/go/darwin-x86/src/net/
dnsmsg.go 309 // All the packers and unpackers take a (msg []byte, off int)
328 // Pack a domain name s into msg[off:].
331 func packDomainName(s string, msg []byte, off int) (off1 int, ok bool) {
339 msg[off] = 0
340 off++
341 return off, true
349 if off+tot > len(msg) {
364 msg[off] = byte(i - begin)
365 off++
368 msg[off] = s[j
    [all...]
  /prebuilts/go/linux-x86/src/net/
dnsmsg.go 309 // All the packers and unpackers take a (msg []byte, off int)
328 // Pack a domain name s into msg[off:].
331 func packDomainName(s string, msg []byte, off int) (off1 int, ok bool) {
339 msg[off] = 0
340 off++
341 return off, true
349 if off+tot > len(msg) {
364 msg[off] = byte(i - begin)
365 off++
368 msg[off] = s[j
    [all...]
  /external/elfutils/libdw/
dwarf_nextcu.c 39 dwarf_next_unit (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
53 if (off == (Dwarf_Off) -1l
58 || unlikely (off + 4 >= dwarf->sectiondata[sec_idx]->d_size))
67 const unsigned char *bytes = data + off;
110 if (unlikely (DIE_OFFSET_FROM_CU_OFFSET (off, offset_size, debug_types)
144 if (unlikely (type_offset < (size_t) (bytes - (data + off))))
154 *header_sizep = bytes - (data + off);
171 *next_off = off + 2 * offset_size - 4 + length;
178 dwarf_nextcu (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
182 return INTUSE(dwarf_next_unit) (dwarf, off, next_off, header_sizep, NULL
    [all...]
  /external/javasqlite/src/main/java/SQLite/
Blob.java 127 * @param off offset into byte array
132 public int read(byte b[], int off, int len) throws IOException {
133 if (off + len > b.length) {
134 len = b.length - off;
142 int n = blob.read(b, off, pos, len);
221 * @param off offset within byte array
225 public void write(byte[] b, int off, int len) throws IOException {
227 if (off + len > b.length) {
228 len = b.length - off;
233 pos += blob.write(b, off, pos, len)
    [all...]
  /external/elfutils/tests/
low_high_pc.c 44 fail(Dwarf_Off off, const char *name, const char *msg)
46 printf("%s: [%" PRIx64 "] '%s' %s\n", args->file, off, name, msg);
54 Dwarf_Off off = dwarf_dieoffset (die); local
58 fail (off, "<no name>", "die without a name");
63 fail (off, name, "has DW_AT_low_pc but dwarf_lowpc fails");
65 fail (off, name, "has DW_AT_high_pc but dwarf_highpc fails");
75 fail (off, name, "highpc <= lowpc");
strptr.c 77 size_t off = 0; local
78 const char *str = elf_strptr (elf, ndx, off);
81 printf ("[%zx] '%s'\n", off, str);
82 off += strlen (str) + 1;
83 str = elf_strptr (elf, ndx, off);
  /external/guava/guava/src/com/google/common/hash/
AbstractByteHasher.java 53 * Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer.
55 protected void update(byte[] b, int off, int len) {
56 for (int i = off; i < off + len; i++) {
75 public Hasher putBytes(byte[] bytes, int off, int len) {
76 checkPositionIndexes(off, off + len, bytes.length);
77 update(bytes, off, len);
  /external/lzma/Java/Tukaani/src/org/tukaani/xz/
DeltaOutputStream.java 41 public void write(byte[] buf, int off, int len) throws IOException {
42 if (off < 0 || len < 0 || off + len < 0 || off + len > buf.length)
53 delta.encode(buf, off, FILTER_BUF_SIZE, filterBuf);
55 off += FILTER_BUF_SIZE;
59 delta.encode(buf, off, len, filterBuf);
  /external/lzma/Java/Tukaani/src/org/tukaani/xz/simple/
X86.java 33 public int code(byte[] buf, int off, int len) {
34 int prevPos = off - 1;
35 int end = off + len - 5;
38 for (i = off; i <= end; ++i) {
67 dest = src + (pos + i - off);
69 dest = src - (pos + i - off);
94 i -= off;
  /libcore/ojluni/src/main/java/sun/nio/ch/
ChannelInputStream.java 94 public synchronized int read(byte[] bs, int off, int len)
97 if ((off < 0) || (off > bs.length) || (len < 0) ||
98 ((off + len) > bs.length) || ((off + len) < 0)) {
106 bb.limit(Math.min(off + len, bb.capacity()));
107 bb.position(off);
  /external/llvm/test/MC/AMDGPU/
mubuf.s 17 buffer_load_dword v1, off, s[4:7], s1
18 // SICI: buffer_load_dword v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x30,0xe0,0x00,0x01,0x01,0x01]
19 // VI: buffer_load_dword v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x50,0xe0,0x00,0x01,0x01,0x01]
21 buffer_load_dword v1, off, ttmp[4:7], s1
22 // SICI: buffer_load_dword v1, off, ttmp[4:7], s1 ; encoding: [0x00,0x00,0x30,0xe0,0x00,0x01,0x1d,0x01]
23 // VI: buffer_load_dword v1, off, ttmp[4:7], s1 ; encoding: [0x00,0x00,0x50,0xe0,0x00,0x01,0x1d,0x01]
25 buffer_load_dword v1, off, s[4:7], s1 offset:4
26 // SICI: buffer_load_dword v1, off, s[4:7], s1 offset:4 ; encoding: [0x04,0x00,0x30,0xe0,0x00,0x01,0x01,0x01]
27 // VI: buffer_load_dword v1, off, s[4:7], s1 offset:4 ; encoding: [0x04,0x00,0x50,0xe0,0x00,0x01,0x01,0x01]
29 buffer_load_dword v1, off, s[4:7], s1 offset:4 gl
    [all...]
  /libcore/ojluni/src/main/native/
io_util.c 68 outOfBounds(JNIEnv *env, jint off, jint len, jbyteArray array) {
69 return ((off < 0) ||
73 ((*env)->GetArrayLength(env, array) - off < len));
78 jint off, jint len, jfieldID fid)
90 if (outOfBounds(env, off, len, bytes)) {
114 (*env)->SetByteArrayRegion(env, bytes, off, nread, (jbyte *)buf);
154 jint off, jint len, jboolean append, jfieldID fid)
166 if (outOfBounds(env, off, len, bytes)) {
183 (*env)->GetByteArrayRegion(env, bytes, off, len, (jbyte *)buf);
186 off = 0
    [all...]
  /external/sfntly/cpp/src/sfntly/data/
font_output_stream.cc 46 void FontOutputStream::Write(ByteVector* b, int32_t off, int32_t len) {
49 if (off < 0 || len < 0 || off + len < 0 ||
50 static_cast<size_t>(off + len) > b->size()) {
58 stream_->Write(b, off, len);
62 void FontOutputStream::Write(byte_t* b, int32_t off, int32_t len) {
65 if (off < 0 || len < 0 || off + len < 0) {
73 stream_->Write(b, off, len);
  /external/syslinux/dos/
getsetsl.c 98 uint16_t off; local
101 off = (size_t)dst & 15;
107 : "+D" (off), "+S" (src), "+c" (len)
115 uint16_t off; local
118 off = (size_t)src & 15;
124 : "+D" (dst), "+S" (off), "+c" (len)
132 uint16_t off; local
135 off = (size_t)dst & 15;
141 : "+D" (off), "+c" (len)
  /libcore/ojluni/src/main/java/java/io/
CharArrayWriter.java 92 * @param off the start offset in the data
95 public void write(char c[], int off, int len) {
96 if ((off < 0) || (off > c.length) || (len < 0) ||
97 ((off + len) > c.length) || ((off + len) < 0)) {
107 System.arraycopy(c, off, buf, count, len);
115 * @param off Offset from which to start reading characters
118 public void write(String str, int off, int len) {
124 str.getChars(off, off + len, buf, count)
    [all...]
PipedReader.java 208 synchronized void receive(char c[], int off, int len) throws IOException {
210 receive(c[off++]);
286 * @param off the start offset of the data.
296 public synchronized int read(char cbuf[], int off, int len) throws IOException {
306 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
307 ((off + len) > cbuf.length) || ((off + len) < 0)) {
318 cbuf[off] = (char)c;
321 cbuf[off + rlen] = buffer[out++]
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
IndefiniteLengthInputStream.java 51 public int read(byte[] b, int off, int len)
57 return super.read(b, off, len);
65 int numRead = _in.read(b, off + 2, len - 2);
73 b[off] = (byte)_b1;
74 b[off + 1] = (byte)_b2;
  /external/elfutils/lib/
crc32_file.c 44 off_t off = 0; local
73 off += mapsize;
76 fd, off) == mapped);
82 off))) > 0)
84 off += count;

Completed in 597 milliseconds

1 2 3 45 6 7 8 91011>>