BasicByte.java revision 721
0N/A/*
2051N/A * Copyright 2000-2007 Sun Microsystems, Inc. All Rights Reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1472N/A * CA 95054 USA or visit www.sun.com if you need additional information or
1472N/A * have any questions.
0N/A */
0N/A
0N/A/* Type-specific source code for unit test
1879N/A *
1879N/A * Regenerate the BasicX classes via genBasic.sh whenever this file changes.
1879N/A * We check in the generated source files so that the test tree can be used
1879N/A * independently of the rest of the source tree.
1879N/A */
0N/A
0N/A// -- This file was mechanically generated: Do not edit! -- //
1703N/A
0N/Aimport java.nio.*;
0N/Aimport java.lang.reflect.Method;
0N/A
1703N/A
0N/Apublic class BasicByte
0N/A extends Basic
0N/A{
0N/A
0N/A private static void relGet(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A byte v;
0N/A for (int i = 0; i < n; i++)
0N/A ck(b, (long)b.get(), (long)((byte)ic(i)));
0N/A b.rewind();
0N/A }
0N/A
0N/A private static void relGet(ByteBuffer b, int start) {
0N/A int n = b.remaining();
0N/A byte v;
0N/A for (int i = start; i < n; i++)
1703N/A ck(b, (long)b.get(), (long)((byte)ic(i)));
2888N/A b.rewind();
1703N/A }
1703N/A
0N/A private static void absGet(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A byte v;
0N/A for (int i = 0; i < n; i++)
0N/A ck(b, (long)b.get(), (long)((byte)ic(i)));
0N/A b.rewind();
0N/A }
0N/A
0N/A private static void bulkGet(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A byte[] a = new byte[n + 7];
0N/A b.get(a, 7, n);
0N/A for (int i = 0; i < n; i++)
0N/A ck(b, (long)a[i + 7], (long)((byte)ic(i)));
0N/A }
0N/A
0N/A private static void relPut(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A b.clear();
0N/A for (int i = 0; i < n; i++)
3932N/A b.put((byte)ic(i));
0N/A b.flip();
0N/A }
0N/A
0N/A private static void absPut(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A b.clear();
0N/A for (int i = 0; i < n; i++)
0N/A b.put(i, (byte)ic(i));
0N/A b.limit(n);
0N/A b.position(0);
0N/A }
0N/A
0N/A private static void bulkPutArray(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A b.clear();
0N/A byte[] a = new byte[n + 7];
0N/A for (int i = 0; i < n; i++)
0N/A a[i + 7] = (byte)ic(i);
0N/A b.put(a, 7, n);
0N/A b.flip();
0N/A }
0N/A
0N/A private static void bulkPutBuffer(ByteBuffer b) {
0N/A int n = b.capacity();
0N/A b.clear();
4015N/A ByteBuffer c = ByteBuffer.allocate(n + 7);
0N/A c.position(7);
0N/A for (int i = 0; i < n; i++)
0N/A c.put((byte)ic(i));
1703N/A c.flip();
Error!

 

There was an error!

null

java.lang.NullPointerException