Example #1
0
 private void WriteMetadata(AsMetadataInfo metadata)
 {
     WriteU30(metadata.Name);
     WriteU30((uint)metadata.Items.Length);
     foreach (var item in metadata.Items)
     {
         WriteMetadataItem(item);
     }
 }
Example #2
0
        private AsMetadataInfo[] ReadMutipleMetadata()
        {
            var len = ReadU30();
            var res = new AsMetadataInfo[len];

            for (var i = 0; i < len; i++)
            {
                res[i] = ReadMetadata();
            }
            return(res);
        }
Example #3
0
 private AbcMetadata ReadMetadata(AsMetadataInfo metaInfo)
 {
     var res = new AbcMetadata {
         Name = FileInfo.ConstantPool.Strings[metaInfo.Name]
     };
     foreach (var item in metaInfo.Items) {
         res.Items.Add(new AbcMetadataItem {
             Key = FileInfo.ConstantPool.Strings[item.Key],
             Value = FileInfo.ConstantPool.Strings[item.Value]
         });
     }
     return res;
 }
Example #4
0
 private AsMetadataInfo[] ReadMutipleMetadata()
 {
     var len = ReadU30();
     var res = new AsMetadataInfo[len];
     for (var i = 0; i < len; i++) {
         res[i] = ReadMetadata();
     }
     return res;
 }
Example #5
0
 private void WriteMultipleMetadata(AsMetadataInfo[] vals)
 {
     WriteU30((uint)vals.Length);
     foreach (var value in vals) {
         WriteMetadata(value);
     }
 }
Example #6
0
 private void WriteMetadata(AsMetadataInfo metadata)
 {
     WriteU30(metadata.Name);
     WriteU30((uint)metadata.Items.Length);
     foreach (var item in metadata.Items) {
         WriteMetadataItem(item);
     }
 }