예제 #1
0
// public native char getChar(long address);
// (J)C
func mem_getChar(frame *rtda.Frame) {
	stack, mem := _get(frame)
	stack.PushInt(int32(bigendian.Uint16(mem)))
}
예제 #2
0
func (self *ClassReader) readUint16() uint16 {
	val := bigendian.Uint16(self.data)
	self.data = self.data[2:]
	return val
}