mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-10-01 05:54:58 +02:00
Registry: Move control of the StrLike output to the UIs
This commit is contained in:
@@ -32,9 +32,5 @@ class StrLike(bytes):
|
||||
return super().__new__(cls, original)
|
||||
|
||||
def __init__(self, original: bytes, encoding: str = 'utf-16-le'):
|
||||
self.original = original
|
||||
self._encoding = encoding
|
||||
self.encoding = encoding
|
||||
bytes.__init__(original)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.original, encoding = self._encoding, errors = 'replace').split("\x00")[0]
|
||||
|
||||
Reference in New Issue
Block a user