Cross Reference: BasicByte.java
xref
: /
openjdk7
/
jdk
/
test
/
java
/
nio
/
Buffer
/
BasicByte.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
BasicByte.java revision 721
0
N/A
/*
2051
N/A
* Copyright 2000-2007 Sun Microsystems, Inc. All Rights Reserved.
0
N/A
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0
N/A
*
0
N/A
* This code is free software; you can redistribute it
and
/
or
modify it
0
N/A
* under the terms of the GNU General Public License version 2 only, as
0
N/A
* published by the Free Software Foundation.
0
N/A
*
0
N/A
* This code is distributed in the hope that it will be useful, but WITHOUT
0
N/A
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0
N/A
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0
N/A
* version 2 for more details (a copy is included in the LICENSE file that
0
N/A
* accompanied this code).
0
N/A
*
0
N/A
* You should have received a copy of the GNU General Public License version
0
N/A
* 2 along with this work; if not, write to the Free Software Foundation,
0
N/A
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0
N/A
*
1472
N/A
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1472
N/A
* CA 95054 USA or visit www.sun.com if you need additional information or
1472
N/A
* have any questions.
0
N/A
*/
0
N/A
0
N/A
/* Type-specific source code for unit test
1879
N/A
*
1879
N/A
* Regenerate the BasicX classes via genBasic.sh whenever this file changes.
1879
N/A
* We check in the generated source files so that the test tree can be used
1879
N/A
* independently of the rest of the source tree.
1879
N/A
*/
0
N/A
0
N/A
// -- This file was mechanically generated: Do not edit! -- //
1703
N/A
0
N/A
import
java
.
nio
.*;
0
N/A
import
java
.
lang
.
reflect
.
Method
;
0
N/A
1703
N/A
0
N/A
public
class
BasicByte
0
N/A
extends
Basic
0
N/A
{
0
N/A
0
N/A
private
static
void
relGet
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
byte
v;
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
ck
(b, (
long
)b.
get
(), (
long
)((
byte
)
ic
(i)));
0
N/A
b.
rewind
();
0
N/A
}
0
N/A
0
N/A
private
static
void
relGet
(
ByteBuffer
b,
int
start
) {
0
N/A
int
n = b.
remaining
();
0
N/A
byte
v;
0
N/A
for
(
int
i =
start
; i < n; i++)
1703
N/A
ck
(b, (
long
)b.
get
(), (
long
)((
byte
)
ic
(i)));
2888
N/A
b.
rewind
();
1703
N/A
}
1703
N/A
0
N/A
private
static
void
absGet
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
byte
v;
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
ck
(b, (
long
)b.
get
(), (
long
)((
byte
)
ic
(i)));
0
N/A
b.
rewind
();
0
N/A
}
0
N/A
0
N/A
private
static
void
bulkGet
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
byte
[] a =
new
byte
[n +
7
];
0
N/A
b.
get
(a,
7
, n);
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
ck
(b, (
long
)a[i +
7
], (
long
)((
byte
)
ic
(i)));
0
N/A
}
0
N/A
0
N/A
private
static
void
relPut
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
b.
clear
();
0
N/A
for
(
int
i =
0
; i < n; i++)
3932
N/A
b.
put
((
byte
)
ic
(i));
0
N/A
b.
flip
();
0
N/A
}
0
N/A
0
N/A
private
static
void
absPut
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
b.
clear
();
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
b.
put
(i, (
byte
)
ic
(i));
0
N/A
b.
limit
(n);
0
N/A
b.
position
(
0
);
0
N/A
}
0
N/A
0
N/A
private
static
void
bulkPutArray
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
b.
clear
();
0
N/A
byte
[] a =
new
byte
[n +
7
];
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
a[i +
7
] = (
byte
)
ic
(i);
0
N/A
b.
put
(a,
7
, n);
0
N/A
b.
flip
();
0
N/A
}
0
N/A
0
N/A
private
static
void
bulkPutBuffer
(
ByteBuffer
b) {
0
N/A
int
n = b.
capacity
();
0
N/A
b.
clear
();
4015
N/A
ByteBuffer
c =
ByteBuffer
.
allocate
(n +
7
);
0
N/A
c.
position
(
7
);
0
N/A
for
(
int
i =
0
; i < n; i++)
0
N/A
c.
put
((
byte
)
ic
(i));
1703
N/A
c.
flip
();
Error!
Full Search
Definition
Symbol
File Path
History
In Project(s)
select all
invert selection
ast
bind-9.11.3
bind-9.6-ESV-R11
dovecot
ec
forgerock
gkrellm-k10addon
glassfish
glassfish-3.1.2
glassfish.hg
hets
httpd
illumos-gate
inkscape
javamail
k10sensor
libmicro
lucene-3.6.0
lxc
ontohub
opengrok
opengrok-jel
opengrok-sun
openjdk7
osnet-11
owl-s
pkg
scfdot
sendmail
solaris-desktop
solaris-userland
solaris-userland-s11u3
solaris-x11-s11
solaris-x11-s12
sssd
sssd-io
systemd
vbox
yui3
Search
Clear
Help
There was an error!
null
java.lang.NullPointerException