少年修仙传客户端基础资源
leonard Wu
2018-08-09 a10eea6e4ce647061813519d5b0ea496f29495b9
Assets/Editor/MemoryProfiler/BytesAndOffset.cs
@@ -23,25 +23,25 @@
        public Int32 ReadInt32()
        {
            return BitConverter.ToInt32(bytes, offset);
        }
        public Int64 ReadInt64()
        {
            return BitConverter.ToInt64(bytes, offset);
        }
        }
        public Int64 ReadInt64()
        {
            return BitConverter.ToInt64(bytes, offset);
        }
        public BytesAndOffset Add(int add)
        {
            return new BytesAndOffset() {bytes = bytes, offset = offset + add, pointerSize = pointerSize};
        }
        public void WritePointer(UInt64 value)
        {
            for (int i = 0; i < pointerSize; i++)
            {
                bytes[i + offset] = (byte)value;
                value >>= 8;
            }
        {
            for (int i = 0; i < pointerSize; i++)
            {
                bytes[i + offset] = (byte)value;
                value >>= 8;
            }
        }
        public BytesAndOffset NextPointer()