Esempio n. 1
0
        public ScriptBuilder EmitLoad(byte reg, ISerializable val)
        {
            using (var stream = new MemoryStream())
            {
                using (var writer = new BinaryWriter(stream))
                {
                    val.SerializeData(writer);
                }

                var bytes = stream.ToArray();
                EmitLoad(reg, bytes, VMType.Bytes);
                return(this);
            }
        }