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