Searched refs:offset (Results 1 - 25 of 50) sorted by relevance

12

/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/jts/CosTransactions/
H A DLogLSN.java71 * offset: the offset within the extent file
101 int offset = 0; field in class:LogLSN
113 offset = 0;
128 offset = off;
141 offset = lsn.offset;
156 offset = (bytes[index++]&255) +
175 return offset == 0 && extent == 0;
187 return offset
[all...]
H A DLogHandle.java198 /**The offset in the control file for the first restart data record.
202 /**The offset in the control file for the second restart data record.
331 // (log head LSN's offset + 2*LOG_HEADER_SIZE + LOG_ENDING_SIZE) from
334 int remainingSpace = MAX_EXTENT_SIZE - ( logControlDescriptor.nextLSN.offset
426 // Use the offset value from the next LSN to calculate the next free offset
431 logControlDescriptor.nextLSN.offset + recordSize);
489 if( grabSize + logControlDescriptor.nextLSN.offset > MAX_EXTENT_SIZE )
490 grabSize = MAX_EXTENT_SIZE - logControlDescriptor.nextLSN.offset;
514 // Move the File pointer back to it's original offset
[all...]
/glassfish-3.1.2/installer/src/main/java/org/glassfish/installer/util/
H A DStringUtils.java134 int offset = 0, tokenLen = token.length(), valLen = newValue.length();
135 offset = str.toString().indexOf(token, offset);
136 while (offset != -1) {
137 str.replace(offset, offset + tokenLen, newValue);
138 offset = offset + valLen;
139 offset = str.toString().indexOf(token, offset);
[all...]
/glassfish-3.1.2/persistence/cmp/enhancer/src/main/java/com/sun/jdo/api/persistence/enhancer/classfile/
H A DCodeEnv.java53 /* hash table mapping byte code offset to InsnTarget */
60 final InsnTarget getTarget(int offset) { argument
61 Integer off = new Integer(offset);
64 targ = new InsnTarget(offset);
70 final InsnTarget findTarget(int offset) { argument
71 Integer off = new Integer(offset);
H A DInsnTableSwitch.java128 out.println(offset() + " opc_tableswitch ");//NOI18N
131 if (targetsOp[i].offset() != defaultOp.offset()) {
133 out.println(index + " -> " + targetsOp[i].offset());//NOI18N
137 out.println("default -> " + defaultOp.offset());//NOI18N
143 index = storeInt(buf, index, defaultOp.offset() - offset());
147 index = storeInt(buf, index, targetsOp[i].offset() - offset());
153 int basic = ((offset()
159 InsnTableSwitch(int lowOp, InsnTarget defaultOp, InsnTarget[] targetsOp, int offset) argument
[all...]
H A DInsnTarget.java94 out.println(offset() + ":");//NOI18N
105 InsnTarget(int offset) { argument
106 super(opc_target, offset);
H A DInsnLookupSwitch.java131 InsnTarget[] targetsOp, int offset) {
132 super(opc_lookupswitch, offset);
146 out.println(offset() + " opc_lookupswitch ");//NOI18N
149 out.println(matchesOp[i] + " -> " + targetsOp[i].offset());//NOI18N
152 out.println("default -> " + defaultOp.offset());//NOI18N
158 index = storeInt(buf, index, defaultOp.offset() - offset());
162 index = storeInt(buf, index, targetsOp[i].offset() - offset());
169 int basic = ((offset()
130 InsnLookupSwitch(InsnTarget defaultOp, int[] matchesOp, InsnTarget[] targetsOp, int offset) argument
[all...]
H A DExceptionRange.java119 out.writeShort(excStartPC.offset());
120 out.writeShort(excEndPC.offset());
121 out.writeShort(excHandlerPC.offset());
132 out.print(" start = " + Integer.toString(excStartPC.offset()));//NOI18N
133 out.print(" end = " + Integer.toString(excEndPC.offset()));//NOI18N
134 out.println(" handle = " + Integer.toString(excHandlerPC.offset()));//NOI18N
H A DLocalVariable.java97 out.writeShort(varStartPC.offset());
98 out.writeShort(varEndPC.offset() - varStartPC.offset());
108 out.print(" start_pc = " + Integer.toString(varStartPC.offset()));//NOI18N
110 Integer.toString(varEndPC.offset() - varStartPC.offset()));
H A DInsnTargetOp.java47 * An instruction which requires a single branch offset
95 /* print offset in non-relative form for readability */
96 out.println(offset() + " " + opName(opcode()) + " " + //NOI18N
97 targetOp.offset());
102 int off = targetOp.offset() - offset();
H A DInsnInterfaceInvoke.java106 int offset) {
107 super(opc_invokeinterface, methodRefOp, offset);
118 out.println(offset() + " opc_invokeinterface " + //NOI18N
105 InsnInterfaceInvoke(ConstInterfaceMethodRef methodRefOp, int nArgsOp, int offset) argument
H A DInsnMultiDimArrayNew.java124 InsnMultiDimArrayNew (ConstClass classOp, int nDimsOp, int offset) { argument
125 super(opc_multianewarray, offset);
139 out.println(offset() + " opc_multianewarray pool(" +//NOI18N
H A DLineNumberTableAttribute.java93 out.writeShort(targets[i].offset());
104 Integer.toString(targets[i].offset()));
H A DInsnIntOp.java107 out.println(offset() + " opc_newarray " + primType(operandValue));//NOI18N
109 out.println(offset() + " " + opName(opcode()) + " " + operandValue);//NOI18N
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/distributed/
H A DReadOnlyBeanMessageCallBack.java154 * array[offset] is the most-significant-byte and array[offset+7] is the
159 * @param offset
160 * The offset from which to start marshalling.
162 private static void longToBytes(long value, byte[] array, int offset) { argument
163 array[offset] = (byte) ((value >>> 56) & 0xFF);
164 array[offset + 1] = (byte) ((value >>> 48) & 0xFF);
165 array[offset + 2] = (byte) ((value >>> 40) & 0xFF);
166 array[offset + 3] = (byte) ((value >>> 32) & 0xFF);
167 array[offset
183 bytesToLong(byte[] array, int offset) argument
202 bytesToInt(byte[] array, int offset) argument
[all...]
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/utility/
H A DStringScanner.java61 static int skipWhite(String s, int offset) argument
65 if (offset < 0)
67 while (offset < end && Character.isWhitespace(s.charAt(offset)))
68 offset++;
69 return offset;
72 static int skipTo(String s, int offset, String delim) argument
76 if (offset < 0)
78 while (offset < end && delim.indexOf(s.charAt(offset))
83 skipTo(String s, int offset, char delim) argument
94 charAt(String s, int offset) argument
101 skipInt(String s, int offset) argument
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/accesslog/
H A DAccessLogFormatter.java157 protected String calculateTimeZoneOffset(long offset) { argument
159 if ((offset<0)) {
161 offset = -offset;
166 long hourOffset = offset/(1000*60*60);
167 long minuteOffset = (offset/(1000*60)) % 60;
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DUtility.java142 i.e. array[offset] is the most-significant-byte
143 and array[offset+3] is the least-significant-byte.
145 @param offset The offset from which to start unmarshalling.
147 public static int bytesToInt(byte[] array, int offset) argument
151 b1 = (array[offset++] << 24) & 0xFF000000;
152 b2 = (array[offset++] << 16) & 0x00FF0000;
153 b3 = (array[offset++] << 8) & 0x0000FF00;
154 b4 = (array[offset++] << 0) & 0x000000FF;
161 i.e. array[offset] i
166 intToBytes(int value, byte[] array, int offset) argument
181 bytesToLong(byte[] array, int offset) argument
198 longToBytes(long value, byte[] array, int offset) argument
[all...]
/glassfish-3.1.2/cluster/ssh/src/main/java/org/glassfish/cluster/ssh/sftp/
H A DSFTPClient.java128 private long offset = 0;
135 SFTPClient.this.write(h,offset,b,off,len);
136 offset += len;
150 private long offset = 0;
161 int r = SFTPClient.this.read(h,offset,b,off,len);
163 offset += r;
169 offset += n;
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/
H A DTextLoginDialog.java194 int offset = 0;
218 buf = new char[offset + 128];
219 room = buf.length - offset - 1;
220 System.arraycopy(lineBuffer, 0, buf, 0, offset);
224 buf[offset++] = (char) c;
229 if (offset == 0) {
233 char[] ret = new char[offset];
234 System.arraycopy(buf, 0, ret, 0, offset);
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/util/
H A DTypeUtil.java83 * @param offset - the offset in buf to place the first digit
90 int offset
95 int init_offset = offset;
99 buf[offset] = digits[0];
107 buf[offset++] = '-';
117 buf[offset++] = digits[this_digit];
122 return offset - init_offset;
136 * @param offset - the offset i
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/readers/
H A DXmlInputReader.java313 int offset = 0;
333 j = offset;
363 * circle offset. The offset is mod n.
365 circle[offset] = c;
366 offset += 1;
367 if (offset >= n) {
368 offset -= n;
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DListCommandsCommand.java270 int offset = (num / 2) + (num % 2);
273 for (int i = 0; i < offset; i++) {
276 if (i + offset < num) {
277 sb.append(remoteCommands[i + offset]);
279 if (i < offset - 1)
/glassfish-3.1.2/installer/src/cpp/share/launcher/zlib-1.1.4/
H A Dgzio.c653 compressed file. The offset represents a number of bytes in the
654 gzseek returns the resulting offset location as measured in bytes from
659 z_off_t ZEXPORT gzseek (file, offset, whence)
661 z_off_t offset;
676 offset -= s->stream.total_in;
678 if (offset < 0) return -1L;
680 /* At this point, offset is the number of zero bytes to write. */
685 while (offset > 0) {
687 if (offset < Z_BUFSIZE) size = (uInt)offset;
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/fileupload/
H A DRequestItemIterator.java546 int offset = headerPart.indexOf('\r', index);
547 if (offset == -1 || offset + 1 >= headerPart.length()) {
551 if (headerPart.charAt(offset + 1) == '\n') {
552 return offset;
554 index = offset + 1;

Completed in 103 milliseconds

12