Opc.Ua.BinaryDecoder.ReadByte C# (CSharp) Method

ReadByte() public method

Reads a byte from the stream.
public ReadByte ( string fieldName ) : byte
fieldName string
return byte
        public byte ReadByte(string fieldName)
        {
			return m_reader.ReadByte();
        }

Usage Example

コード例 #1
0
        /// <summary>
        /// Updates the specified context.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="decoder">The decoder.</param>
        /// <param name="attibutesToLoad">The attributes to load.</param>
        public override void Update(ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad)
        {
            base.Update(context, decoder, attibutesToLoad);

            if ((attibutesToLoad & AttributesToSave.EventNotifier) != 0)
            {
                m_eventNotifier = decoder.ReadByte(null);
            }

            if ((attibutesToLoad & AttributesToSave.ContainsNoLoops) != 0)
            {
                m_containsNoLoops = decoder.ReadBoolean(null);
            }
        }