コード例 #1
0
        public FunctionCode GetFunction()
        {
            if (buffer == null)
            {
                return(FunctionCode.UNKNOWN);
            }
            var field = new FunctionCodeField();

            return(field.FunctionCodeFromType(buffer_bytes[1]));
        }
コード例 #2
0
        public void SetFunction(FunctionCode code)
        {
            if (buffer == null)
            {
                return;
            }
            var field = new FunctionCodeField();

            buffer_bytes[1] = field.FunctionCodeToType(code);
        }