Home | History | Annotate | Download | only in io

Lines Matching refs:offset

46     public static int peekInt(byte[] src, int offset, ByteOrder order) {
48 return (((src[offset++] & 0xff) << 24) |
49 ((src[offset++] & 0xff) << 16) |
50 ((src[offset++] & 0xff) << 8) |
51 ((src[offset ] & 0xff) << 0));
53 return (((src[offset++] & 0xff) << 0) |
54 ((src[offset++] & 0xff) << 8) |
55 ((src[offset++] & 0xff) << 16) |
56 ((src[offset ] & 0xff) << 24));
60 public static long peekLong(byte[] src, int offset, ByteOrder order) {
62 int h = ((src[offset++] & 0xff) << 24) |
63 ((src[offset++] & 0xff) << 16) |
64 ((src[offset++] & 0xff) << 8) |
65 ((src[offset++] & 0xff) << 0);
66 int l = ((src[offset++] & 0xff) << 24) |
67 ((src[offset++] & 0xff) << 16) |
68 ((src[offset++] & 0xff) << 8) |
69 ((src[offset ] & 0xff) << 0);
72 int l = ((src[offset++] & 0xff) << 0) |
73 ((src[offset++] & 0xff) << 8) |
74 ((src[offset++] & 0xff) << 16) |
75 ((src[offset++] & 0xff) << 24);
76 int h = ((src[offset++] & 0xff) << 0) |
77 ((src[offset++] & 0xff) << 8) |
78 ((src[offset++] & 0xff) << 16) |
79 ((src[offset ] & 0xff) << 24);
84 public static short peekShort(byte[] src, int offset, ByteOrder order) {
86 return (short) ((src[offset] << 8) | (src[offset + 1] & 0xff));
88 return (short) ((src[offset + 1] << 8) | (src[offset] & 0xff));
92 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) {
94 dst[offset++] = (byte) ((value >> 24) & 0xff);
95 dst[offset++] = (byte) ((value >> 16) & 0xff);
96 dst[offset++] = (byte) ((value >> 8) & 0xff);
97 dst[offset ] = (byte) ((value >> 0) & 0xff);
99 dst[offset++] = (byte) ((value >> 0) & 0xff);
100 dst[offset++] = (byte) ((value >> 8) & 0xff);
101 dst[offset++] = (byte) ((value >> 16) & 0xff);
102 dst[offset ] = (byte) ((value >> 24) & 0xff);
106 public static void pokeLong(byte[] dst, int offset, long value, ByteOrder order) {
109 dst[offset++] = (byte) ((i >> 24) & 0xff);
110 dst[offset++] = (byte) ((i >> 16) & 0xff);
111 dst[offset++] = (byte) ((i >> 8) & 0xff);
112 dst[offset++] = (byte) ((i >> 0) & 0xff);
114 dst[offset++] = (byte) ((i >> 24) & 0xff);
115 dst[offset++] = (byte) ((i >> 16) & 0xff);
116 dst[offset++] = (byte) ((i >> 8) & 0xff);
117 dst[offset ] = (byte) ((i >> 0) & 0xff);
120 dst[offset++] = (byte) ((i >> 0) & 0xff);
121 dst[offset++] = (byte) ((i >> 8) & 0xff);
122 dst[offset++] = (byte) ((i >> 16) & 0xff);
123 dst[offset++] = (byte) ((i >> 24) & 0xff);
125 dst[offset++] = (byte) ((i >> 0) & 0xff);
126 dst[offset++] = (byte) ((i >> 8) & 0xff);
127 dst[offset++] = (byte) ((i >> 16) & 0xff);
128 dst[offset ] = (byte) ((i >> 24) & 0xff);
132 public static void pokeShort(byte[] dst, int offset, short value, ByteOrder order) {
134 dst[offset++] = (byte) ((value >> 8) & 0xff);
135 dst[offset ] = (byte) ((value >> 0) & 0xff);
137 dst[offset++] = (byte) ((value >> 0) & 0xff);
138 dst[offset ] = (byte) ((value >> 8) & 0xff);
225 public static native void pokeByteArray(long address, byte[] src, int offset, int count);
226 public static native void pokeCharArray(long address, char[] src, int offset, int count, boolean swap);
227 public static native void pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap);
228 public static native void pokeFloatArray(long address, float[] src, int offset, int count, boolean swap);
229 public static native void pokeIntArray(long address, int[] src, int offset, int count, boolean swap);
230 public static native void pokeLongArray(long address, long[] src, int offset, int count, boolean swap);
231 public static native void pokeShortArray(long address, short[] src, int offset, int count, boolean swap);