我们如果多了解一些底层东西,对开发程序是很有帮助的.
我把java.nio.bits中的代码正理了一下:
- package com.test;
- import java.nio.bytebuffer;
- public class byteutil {
- /**
- * @param args
- */
- public static void main(string[] args) {
- short s = -20;
- byte[] b = new byte[2];
- putshort(b, s, 0);
- bytebuffer buf = bytebuffer.allocat
闽公网安备 35060202000074号