HyoutaTools.Tales.Vesperia.ItemDat.ItemDatSingle.ItemDatSingle C# (CSharp) Method

ItemDatSingle() public method

public ItemDatSingle ( int offset, byte file ) : System
offset int
file byte
return System
        public ItemDatSingle( int offset, byte[] file )
        {
            NamePointer = Util.SwapEndian( BitConverter.ToUInt32( file, offset + 0x04 ) );
            ItemString = Encoding.ASCII.GetString( file, offset + 0x20, 0x20 );
            DescriptionPointer = Util.SwapEndian( BitConverter.ToUInt32( file, offset + 0x44 ) );

            int startRest = 0x0;
            Data = new UInt32[0x2E4 / 4];
            for ( int i = 0; i < 0x2E4 / 4; ++i ) {
                Data[i] = Util.SwapEndian( BitConverter.ToUInt32( file, offset + startRest + i * 0x04 ) );
            }

            return;
        }