FB.PosePlus.PoseBoneMatrix.Save C# (CSharp) Method

Save() public method

public Save ( System stream, PoseBoneMatrix last ) : void
stream System
last PoseBoneMatrix
return void
        public void Save(System.IO.Stream stream, PoseBoneMatrix last)
        {
            byte[] btag = new byte[2];
            btag[0] = (byte)tag;
            btag[1] = last == null ? (byte)(PoseBoneMatrix.changetag.All) : (byte)tag;
            stream.Write(btag, 0, 2);
            if (last == null || (tag & PoseBoneMatrix.changetag.Rotate) > 0)
            {
                byte[] buf = BitHelper.getBytes(r);
                stream.Write(buf, 0, 16);
            }
            if (last == null || (tag & PoseBoneMatrix.changetag.Trans) > 0)
            {
                byte[] buf = BitHelper.getBytes(t);
                stream.Write(buf, 0, 12);
            }
            if (last == null || (tag & PoseBoneMatrix.changetag.Scale) > 0)
            {
                byte[] buf = BitHelper.getBytes(s);
                stream.Write(buf, 0, 12);
            }
        }
        public void Load(System.IO.Stream stream, PoseBoneMatrix last)