public Exporter(BlobWriter blob)
		{
			Blob = blob;

			Exporters[typeof(bool)] = (ExportDelegate)Exporter.ExportBool;
			Exporters[typeof(int)] = (ExportDelegate)Exporter.ExportInt;
			Exporters[typeof(uint)] = (ExportDelegate)Exporter.ExportUInt;
			Exporters[typeof(sbyte)] = (ExportDelegate)Exporter.ExportSByte;
			Exporters[typeof(byte)] = (ExportDelegate)Exporter.ExportByte;
			Exporters[typeof(float)] = (ExportDelegate)Exporter.ExportFloat;
			Exporters[typeof(double)] = (ExportDelegate)Exporter.ExportDouble;
			Exporters[typeof(string)] = (ExportDelegate)Exporter.ExportString;
			Exporters[typeof(Coherent.UI.Mobile.Binding.Value)] = (ExportDelegate)Exporter.ExportValue;
		}
        public Exporter(BlobWriter blob)
        {
            Blob = blob;

            Exporters[typeof(bool)]   = (ExportDelegate)Exporter.ExportBool;
            Exporters[typeof(int)]    = (ExportDelegate)Exporter.ExportInt;
            Exporters[typeof(uint)]   = (ExportDelegate)Exporter.ExportUInt;
            Exporters[typeof(sbyte)]  = (ExportDelegate)Exporter.ExportSByte;
            Exporters[typeof(byte)]   = (ExportDelegate)Exporter.ExportByte;
            Exporters[typeof(float)]  = (ExportDelegate)Exporter.ExportFloat;
            Exporters[typeof(double)] = (ExportDelegate)Exporter.ExportDouble;
            Exporters[typeof(string)] = (ExportDelegate)Exporter.ExportString;
            Exporters[typeof(Coherent.UI.Mobile.Binding.Value)] = (ExportDelegate)Exporter.ExportValue;
        }
Example #3
0
        public void Finish(BlobWriter blob)
        {
            var bytes = blob.GetBytesCount() - Size;

            blob.WriteAt((System.UInt64)bytes, Size);
        }
Example #4
0
 public void Begin(ValueType type, long size, BlobWriter blob)
 {
     Size = blob.WriteRaw((System.UInt64)type);
     blob.WriteRaw(0UL);
     blob.WriteRaw((System.UInt64)size);
 }
		public void Finish(BlobWriter blob)
		{
			var bytes = blob.GetBytesCount() - Size;
			blob.WriteAt((System.UInt64)bytes, Size);
		}
		public void Begin(ValueType type, long size, BlobWriter blob)
		{
			Size = blob.WriteRaw((System.UInt64)type);
			blob.WriteRaw(0UL);
			blob.WriteRaw((System.UInt64)size);
		}