Lines Matching refs:val
84 static void putBoolean(byte[] b, int off, boolean val) {
85 b[off] = (byte) (val ? 1 : 0);
88 static void putChar(byte[] b, int off, char val) {
89 b[off + 1] = (byte) (val );
90 b[off ] = (byte) (val >>> 8);
93 static void putShort(byte[] b, int off, short val) {
94 b[off + 1] = (byte) (val );
95 b[off ] = (byte) (val >>> 8);
98 static void putInt(byte[] b, int off, int val) {
99 b[off + 3] = (byte) (val );
100 b[off + 2] = (byte) (val >>> 8);
101 b[off + 1] = (byte) (val >>> 16);
102 b[off ] = (byte) (val >>> 24);
105 static void putFloat(byte[] b, int off, float val) {
106 putInt(b, off, Float.floatToIntBits(val));
109 static void putLong(byte[] b, int off, long val) {
110 b[off + 7] = (byte) (val );
111 b[off + 6] = (byte) (val >>> 8);
112 b[off + 5] = (byte) (val >>> 16);
113 b[off + 4] = (byte) (val >>> 24);
114 b[off + 3] = (byte) (val >>> 32);
115 b[off + 2] = (byte) (val >>> 40);
116 b[off + 1] = (byte) (val >>> 48);
117 b[off ] = (byte) (val >>> 56);
120 static void putDouble(byte[] b, int off, double val) {
121 putLong(b, off, Double.doubleToLongBits(val));