Files
2024-06-01 09:44:06 +08:00
..
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00
add
2024-06-01 09:44:06 +08:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
  {
        if (hexBox2.ByteProvider == null) return;
            hexBox2. MarkByte(e.Graphics, 4);  //1.设置某字节的背景色
            byte headerByte = hexBox2.ByteProvider.ReadByte(4); //2.读取字节
            //包头显示
            hexBox2.SetHeader(5, Color.Red, true);  //3.包头着色
        }
        
        
  4.坐标轴十进制: hexBox2.UseHexForAxes = false;    //true为16进制
  5. 显示字符视图hexBox2.StringViewVisible  = true; 
  
  6.读取字节F:\VS\TsParser180831\Be.Windows.Forms.HexBox\DynamicFileByteProvider.cs
  public byte ReadByte(long index)
        {
            long blockOffset;
            DataBlock block = GetDataBlock(index, out blockOffset);
            FileDataBlock fileBlock = block as FileDataBlock;
            if (fileBlock != null)
            {
                return ReadByteFromFile(fileBlock.FileOffset + index - blockOffset);
            }
            else
            {
                MemoryDataBlock memoryBlock = (MemoryDataBlock)block;
                return memoryBlock.Data[index - blockOffset];
            }
        }