private void WriteMetadata(AsMetadataInfo metadata) { WriteU30(metadata.Name); WriteU30((uint)metadata.Items.Length); foreach (var item in metadata.Items) { WriteMetadataItem(item); } }
private AsMetadataInfo[] ReadMutipleMetadata() { var len = ReadU30(); var res = new AsMetadataInfo[len]; for (var i = 0; i < len; i++) { res[i] = ReadMetadata(); } return(res); }
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; }
private AsMetadataInfo[] ReadMutipleMetadata() { var len = ReadU30(); var res = new AsMetadataInfo[len]; for (var i = 0; i < len; i++) { res[i] = ReadMetadata(); } return res; }
private void WriteMultipleMetadata(AsMetadataInfo[] vals) { WriteU30((uint)vals.Length); foreach (var value in vals) { WriteMetadata(value); } }
private void WriteMetadata(AsMetadataInfo metadata) { WriteU30(metadata.Name); WriteU30((uint)metadata.Items.Length); foreach (var item in metadata.Items) { WriteMetadataItem(item); } }