public static Offset <NymaTypes.NDeviceInfo> Pack(FlatBufferBuilder builder, NDeviceInfoT _o)
        {
            if (_o == null)
            {
                return(default(Offset <NymaTypes.NDeviceInfo>));
            }
            var _ShortName   = _o.ShortName == null ? default(StringOffset) : builder.CreateString(_o.ShortName);
            var _FullName    = _o.FullName == null ? default(StringOffset) : builder.CreateString(_o.FullName);
            var _Description = _o.Description == null ? default(StringOffset) : builder.CreateString(_o.Description);
            var _Inputs      = default(VectorOffset);

            if (_o.Inputs != null)
            {
                var __Inputs = new Offset <NymaTypes.NInputInfo> [_o.Inputs.Count];
                for (var _j = 0; _j < __Inputs.Length; ++_j)
                {
                    __Inputs[_j] = NymaTypes.NInputInfo.Pack(builder, _o.Inputs[_j]);
                }
                _Inputs = CreateInputsVector(builder, __Inputs);
            }
            return(CreateNDeviceInfo(
                       builder,
                       _ShortName,
                       _FullName,
                       _Description,
                       _o.Flags,
                       _o.ByteLength,
                       _Inputs));
        }
        public NDeviceInfoT UnPack()
        {
            var _o = new NDeviceInfoT();

            this.UnPackTo(_o);
            return(_o);
        }
 public void UnPackTo(NDeviceInfoT _o)
 {
     _o.ShortName   = this.ShortName;
     _o.FullName    = this.FullName;
     _o.Description = this.Description;
     _o.Flags       = this.Flags;
     _o.ByteLength  = this.ByteLength;
     _o.Inputs      = new List <NymaTypes.NInputInfoT>();
     for (var _j = 0; _j < this.InputsLength; ++_j)
     {
         _o.Inputs.Add(this.Inputs(_j).HasValue ? this.Inputs(_j).Value.UnPack() : null);
     }
 }