表示領域の右側にある表示区画には、ファイルの ASCII 表示ビューが表示されます。
- 3.1. 使用方法
- 3.2. 既存のデータを上書きせずに新規データを挿入したい場合は を選択します。
- 3.3. To Revert to the Last Saved Version of a File
- 3.4. 現在のファイルを新規ファイル名で保存するには、「バッファを書き込むファイル名を選択」ダイアログに新規フ ァイル名を入力し、 をクリックします。 を選択します。この場合は
- 3.5. To Perform an Advanced Find
- 3.6. To Add Search Criteria
- 3.7. To Remove Search Criteria
- 3.8. 文字列の前の一致を検索するには、 をクリックします。
- 3.9. 現在の該当文字列を置換するには をクリックし、すべての該当文字列を一 度に置換するには をクリックします。
- 3.10. To Change the Data Group Type
- 3.11. 現在のファイルのビューを削除するには、 を選択します。なお、開いていた最後のビューを削除すると、アプリケーションは自動的に終了します。
- 3.12. GHex ウィンドウ内のデータを HTML にエクスポートするには、 を選択します。HTML ファイルを作成するディレクトリおよびファイル名を指定し、 をクリックします。GHex により下記の処理が実行されます。 たとえばファイル名を log.html と指定すると、GHex の作成する HTML ファイルの名前は log00000000.html、log00000001.html、log00000002.html のようになります。
- 3.13. 0 から 255 の各値に対応する ASCII キャラクタ、16 進数、10 進数、8 進数、2 進数を示した表を表示するには、 を選択します。
- 3.14. To Show or Hide the Type Conversion Dialog
- 3.15. GHex によりデータの変換結果が、他のフィールドに表示されます。
3.1. 使用方法
ファイルを編集する
-
ファイルを編集するには、下記の手順に従います。
-
ファイルの ASCII ビューまたは 16 進ビューをクリックします。カーソルがアクティブなビューでは、カーソルがフル表示されます。カーソルがアクティブでない ビューでは、カーソルがアウトライン表示されます。
- Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.
- ウィンドウ上のスクロールバーまたはキーボード上の矢印キーを用いて、ファイルをスクロールします。
-
Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.
To insert data and not overwrite existing data, choose
.To cut, copy, and paste data, choose
, , and .To undo an edit, choose Maximum number of undo levels setting in the セクション 4.1 - GHex を設定するには、 を選択します。「設定」ダイアログには下記のタブが表示されます。 tabbed section of the Preferences dialog.
. To redo an edit, choose . The number of previous edits that you can undo is determined by the3.2. 既存のデータを上書きせずに新規データを挿入したい場合は を選択します。
ファイルを保存する
- ファイルの保存は、下記のいずれかの方法で行えます。
- ファイルに加えた変更を保存するには、 を選択します。
3.3. To Revert to the Last Saved Version of a File
To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose Question dialog.
, then click in the3.4. 現在のファイルを新規ファイル名で保存するには、 を選択します。この場合は「バッファを書き込むファイル名を選択」ダイアログに新規フ ァイル名を入力し、 をクリックします。
ファイル内のデータを検索する
-
ファイル内にある ASCII ないし 16 進の文字列を検索するには、下記の手順に従います。
-
を選択します。
- 「データ検索」ダイアログで、下記のオプションのいずれかを選択します。
- 「16進データを検索」
-
「ASCIIデータを検索」
-
検索する文字列を入力します。
-
文字列の次の一致を検索するには、
をクリックします。 -
Click Find Data dialog.
to close the
3.5. To Perform an Advanced Find
To perform an advanced find, perform the following steps:
- Choose .
- In the Find Data dialog, select the required search criteria. For information about how to add new search criteria, see セクション 3.6 - To Add Search Criteria.
- 検索する文字列を入力します。
- 文字列の次の一致を検索するには、 をクリックします。
- Click Find Data dialog. to close the
3.6. To Add Search Criteria
To add search criteria, perform the following steps:
-
Choose
. -
In the Find Data dialog, click .
-
In the Find Data: Add Search dialog, choose one of the following options:
- 「データ検索」ダイアログで、下記のオプションのいずれかを選択します。
- 「16進データを検索」
-
「ASCIIデータを検索」
-
Use the color wheel or the spin boxes to select a color to highlight the search criteria.
-
Click
. -
Click Find Data dialog.
to close the
3.7. To Remove Search Criteria
To remove search criteria, perform the following steps:
- Choose .
- In the Find Data dialog, select the search criteria that you want to remove.
- Click .
- Click Find Data dialog. to close the
3.8. 文字列の前の一致を検索するには、 をクリックします。
ファイル内のデータを検索して置換する
-
ファイル内にある ASCII ないし 16 進の文字列の検索と置換をするには、下記の手順に従います。
-
を選択します。
- 「 検索およびデータの置換」ダイアログで、下記のオプションのいずれかを選択します。
- 「16進データを置換」
-
「ASCII データを置換」
-
最初のテキストボックスに、検索する文字列を入力します。
-
2 番目のテキストボックスに、検索した文字列と置換する文字列を入力します。
-
をクリックします。
-
Click Find & Replace Data dialog.
to close the
3.9. 現在の該当文字列を置換するには をクリックし、すべての該当文字列を一 度に置換するには をクリックします。
To add another view of the current file to your GHex window, choose .
現在のファイルの新規ビューをGHexウィンドウやデスクトップに追加するには、 を選択します。
3.10. To Change the Data Group Type
To change how GHex displays the hexadecimal content of a file in the GHex window, choose , then select one of the following menu items:
- Bytes - single bytes
- Words - groups of two bytes
- Longwords - groups of four bytes
3.11. 現在のファイルのビューを削除するには、 を選択します。なお、開いていた最後のビューを削除すると、アプリケーションは自動的に終了します。
ファイルを区別するために、ファイル名にページ番号を追加。
3.12. GHex ウィンドウ内のデータを HTML にエクスポートするには、 を選択します。HTML ファイルを作成するディレクトリおよびファイル名を指定し、 をクリックします。GHex により下記の処理が実行されます。 たとえばファイル名を log.html と指定すると、GHex の作成する HTML ファイルの名前は log00000000.html、log00000001.html、log00000002.html のようになります。
キャラクタテーブルを表示する
3.13. 0 から 255 の各値に対応する ASCII キャラクタ、16 進数、10 進数、8 進数、2 進数を示した表を表示するには、 を選択します。
データを変換表示する
-
2 進数、10 進数、16 進数、ASCII 間でのデータを変換表示 (最大 4 バイト) するには、下記の手順に従います。
-
を選択します。
- 次のアクションから 1 つを実行します。
- 「基底変換」ダイアログ上の該当するフィールドに変換するデータを入力し、リターン キーを押します。
また、現在のカーソル位置にあるデータを変換する場合は、
ボタンをクリックします。 -
Click Base Converter dialog.
to close the
3.14. To Show or Hide the Type Conversion Dialog
To show or hide the type conversion dialog, choose
.The type conversion dialog displays the value of the selected character in the following representations:
- Signed 8 bit
- Unsigned 8 bit
- Signed 16 bit
- Unsigned 16 bit
- Signed 32 bit
- Unsigned 32 bit
- 32 bit float
- 64 bit float
- Hexadecimal
- Octal
- Binary
- Stream Length
The type conversion dialog also contains the following options:
- Show little endian decoding
-
Select this option to show little endian decoding.
- Show unsigned and float as hexadecimal
-
Select this option to show unsigned and float numbers as hexadecimal numbers.