Mercurial > hg > truffle
comparison graal/com.oracle.max.base/src/com/sun/max/lang/Endianness.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4141:04d21be7a24f | 4142:bc8527f3071c |
---|---|
346 | 346 |
347 public abstract byte[] toBytes(int value); | 347 public abstract byte[] toBytes(int value); |
348 | 348 |
349 public abstract byte[] toBytes(long value); | 349 public abstract byte[] toBytes(long value); |
350 | 350 |
351 public void toBytes(byte value, byte[] result, int offset) { | |
352 if (result.length > 0) { | |
353 result[0] = value; | |
354 } | |
355 } | |
356 | |
357 public abstract void toBytes(short value, byte[] result, int offset); | 351 public abstract void toBytes(short value, byte[] result, int offset); |
358 | 352 |
359 public abstract void toBytes(int value, byte[] result, int offset); | 353 public abstract void toBytes(int value, byte[] result, int offset); |
360 | 354 |
361 public abstract void toBytes(long value, byte[] result, int offset); | 355 public abstract void toBytes(long value, byte[] result, int offset); |