예제 #1
0
        public RawImageT UnPack()
        {
            var _o = new RawImageT();

            this.UnPackTo(_o);
            return(_o);
        }
예제 #2
0
 public void UnPackTo(RawImageT _o)
 {
     _o.Data = new List <byte>();
     for (var _j = 0; _j < this.DataLength; ++_j)
     {
         _o.Data.Add(this.Data(_j));
     }
     _o.Width  = this.Width;
     _o.Height = this.Height;
 }
예제 #3
0
        public static Offset <hyperionnet.RawImage> Pack(FlatBufferBuilder builder, RawImageT _o)
        {
            if (_o == null)
            {
                return(default(Offset <hyperionnet.RawImage>));
            }
            var _data = default(VectorOffset);

            if (_o.Data != null)
            {
                var __data = _o.Data.ToArray();
                _data = CreateDataVector(builder, __data);
            }
            return(CreateRawImage(
                       builder,
                       _data,
                       _o.Width,
                       _o.Height));
        }