From 3928feb01a256ec7440e88ce99b7995ae1d64f3f Mon Sep 17 00:00:00 2001 From: Brabli <67018167+Brabli@users.noreply.github.com> Date: Mon, 9 Jan 2023 20:38:55 +0000 Subject: [PATCH] Add octal representation of the current byte in data inspector --- media/editor/dataInspectorProperties.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/editor/dataInspectorProperties.tsx b/media/editor/dataInspectorProperties.tsx index c87900e..690462e 100644 --- a/media/editor/dataInspectorProperties.tsx +++ b/media/editor/dataInspectorProperties.tsx @@ -16,6 +16,8 @@ export interface IInspectableType { export const inspectableTypes: readonly IInspectableType[] = [ { label: "binary", minBytes: 1, convert: dv => dv.getUint8(0).toString(2).padStart(8, "0") }, + { label: "octal", minBytes: 1, convert: dv => dv.getUint8(0).toString(8).padStart(3, "0") }, + { label: "uint8", minBytes: 1, convert: dv => dv.getUint8(0).toString() }, { label: "int8", minBytes: 1, convert: dv => dv.getInt8(0).toString() },