package com.whyc.mcp;
|
|
import com.whyc.util.ComBase;
|
|
import java.nio.ByteBuffer;
|
|
public class TestTime {
|
|
public static final int BYTE_LEN = 3;
|
|
public int hour; //时
|
public int minute; //分
|
public int second; //秒
|
public void setTestTime(ByteBuffer bf) {
|
if(bf.limit() < BYTE_LEN) {
|
return;
|
}
|
this.hour = ComBase.changeByteToInt(bf.get());
|
this.minute = ComBase.changeByteToInt(bf.get());
|
this.second = ComBase.changeByteToInt(bf.get());
|
}
|
}
|