mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 00:01:50 +08:00
Merge remote-tracking branch 'origin/GP-6953_ghidra1_GuidAlignment' into
patch (Closes #9200)
This commit is contained in:
+9
-3
@@ -4,9 +4,9 @@
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -50,6 +50,7 @@ public class GuidDataType extends BuiltIn {
|
||||
private static SettingsDefinition[] SETTINGS_DEFS = { ENDIAN };
|
||||
|
||||
public static final int SIZE = 16;
|
||||
public static final int ALIGNMENT = 4;
|
||||
public static final String KEY = "GUID_NAME";
|
||||
|
||||
private static String cachedGuidString;
|
||||
@@ -76,9 +77,14 @@ public class GuidDataType extends BuiltIn {
|
||||
return SIZE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAlignment() {
|
||||
return ALIGNMENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return NAME;
|
||||
return "16-byte Global Unique Identifier (GUID)";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user