/[classpath]/classpath/java/nio/GenericBuffer.cpp
ViewVC logotype

Diff of /classpath/java/nio/GenericBuffer.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rveldema, Mon Mar 11 15:46:36 2002 UTC revision 1.2 by rveldema, Mon Mar 11 16:34:01 2002 UTC
# Line 21  public abstract class BUFFER extends Buf Line 21  public abstract class BUFFER extends Buf
21            
22      public static BUFFER allocateDirect(int capacity)      public static BUFFER allocateDirect(int capacity)
23      {      {
24          BUFFER b = new manta.runtime. BUFFERImpl(capacity, 0, capacity);          BUFFER b = new gnu.java.nio. BUFFERImpl(capacity, 0, capacity);
25          return b;          return b;
26      }      }
27    
28      public static BUFFER allocate(int capacity)      public static BUFFER allocate(int capacity)
29      {      {
30          BUFFER b = new manta.runtime. BUFFERImpl(capacity, 0, capacity);          BUFFER b = new gnu.java.nio. BUFFERImpl(capacity, 0, capacity);
31          return b;          return b;
32      }      }
33    
# Line 35  public abstract class BUFFER extends Buf Line 35  public abstract class BUFFER extends Buf
35                                int offset,                                int offset,
36                                int length)                                int length)
37      {      {
38          manta.runtime.BUFFERImpl b = new manta.runtime. BUFFERImpl(array, offset, length);          gnu.java.nio.BUFFERImpl b = new gnu.java.nio. BUFFERImpl(array, offset, length);
39          return b;          return b;
40      }      }
41    
# Line 143  public abstract class BUFFER extends Buf Line 143  public abstract class BUFFER extends Buf
143          int i2 = a.pos;          int i2 = a.pos;
144          for (int i=0;i<r;i++)          for (int i=0;i<r;i++)
145              {              {
146                  ELT t = get(i1)- a.get(i2);                  ELT t = (ELT)(get(i1)- a.get(i2));
147                  if (t != 0)                  if (t != 0)
148                      {                      {
149                          return (int) t;                          return (int) t;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26