コード例 #1
0
        public override void FillData(byte[] Data, ConstantPoolReader Reader)
        {
            ushort NameIndex       = BitConverterBE.ToUInt16(Data, 0);
            ushort DescriptorIndex = BitConverterBE.ToUInt16(Data, 2);

            Name       = ((Utf8)Reader.GetFilledConstant(NameIndex)).Value;
            Descriptor = ((Utf8)Reader.GetFilledConstant(DescriptorIndex)).Value;
        }
コード例 #2
0
        public override void FillData(byte[] Data, ConstantPoolReader Reader)
        {
            ushort ClassIndex       = BitConverterBE.ToUInt16(Data, 0);
            ushort NameAndTypeIndex = BitConverterBE.ToUInt16(Data, 2);

            Class       ClassConst       = (Class)Reader.GetFilledConstant(ClassIndex);
            NameAndType NameAndTypeConst = (NameAndType)Reader.GetFilledConstant(NameAndTypeIndex);

            this.Class      = ClassConst.Value;
            this.Name       = NameAndTypeConst.Name;
            this.Descriptor = NameAndTypeConst.Descriptor;
        }
コード例 #3
0
ファイル: InvokeDynamic.cs プロジェクト: PlumpMath/CIL2Java
        public override void FillData(byte[] Data, ConstantPoolReader Reader)
        {
            BootstrapMethodAttrIndex = BitConverterBE.ToUInt16(Data, 0);

            NameAndType N = (NameAndType)Reader.GetFilledConstant(BitConverterBE.ToUInt16(Data, 2));

            Name       = N.Name;
            Descriptor = N.Descriptor;
        }
コード例 #4
0
 public override void FillData(byte[] Data, ConstantPoolReader Reader)
 {
     Value = ((Utf8)Reader.GetFilledConstant(BitConverterBE.ToUInt16(Data, 0))).Value;
 }
コード例 #5
0
ファイル: MethodHandle.cs プロジェクト: PlumpMath/CIL2Java
 public override void FillData(byte[] Data, ConstantPoolReader Reader)
 {
     Kind      = (ReferenceKind)Data[0];
     Reference = Reader.GetFilledConstant(BitConverterBE.ToUInt16(Data, 1));
 }