Commit Graph
24 Commits
Author SHA1 Message Date
Donghyun Kim 6c1fe42a37 Fix Docs, Framework, Windows Plugin Typo Error 2022-03-09 01:53:04 +09:00
Donghyun Kim 34a732a4f0 Fix Object Typo Error 2022-03-07 14:00:03 +09:00
Mike Auty 78b3553b2a Objects: Implement minor code optimization by @paulkermann 2022-02-25 16:33:54 +00:00
Mike Auty 265b282569 Objects: Don't try to read 0 bytes when unmarshalling 2022-02-23 22:53:54 +00:00
Paul Kermann bfc4c50e67 related 2022-02-20 14:49:06 +02:00
Mike Auty 8791631db5 Documentation: More minor fixes 2022-01-15 21:40:25 +00:00
Mike Auty 3cb2bf9fac Core: Fix up python 3.10 support
Fixes #589
2021-11-17 13:41:09 +00:00
garanews 449c2aaddf fix some typo 2021-10-18 14:38:12 +02:00
Mike Auty f082c1c8cc Objects: Fix up pointer caching to default to native layer 2021-08-26 17:25:03 +01:00
Mike Auty aa1c24e60a Core: Make pointer caching more accurate 2021-08-26 11:43:32 +01:00
Mike Auty 260f879334 Core: Fix caching of pointer objects 2021-08-19 15:32:48 +01:00
Mike Auty 0d48261201 Core: Change all 3.5 type hints to variable annotations 2021-07-18 16:49:37 +01:00
Mike Auty 9f52a15734 Core: Convert to format strings across the whole base 2021-07-18 15:53:58 +01:00
Gustavo Moreira a795a7e2d5 Using double underscore in the find() will also include edge cases like when the calling class contains an underscore i.e. THE_CLASS 2021-07-14 20:45:43 +10:00
Gustavo Moreira e441742a83 Moving the if down after the concrete members are checked. 2021-07-01 08:21:18 +10:00
Gustavo Moreira ec04dc9caa Fix issue #522: private attribute names mangle
As per https://docs.python.org/3/tutorial/classes.html#private-variables
Python will mangle private attribute names from `__attrname` to `_classname__attrname` to avoid name clashes of names with names defined by subclasses.
This will happen even if subclasses are not involved i.e.: calling `type_member.__foo` from a plugin classmethod.
Note that `__foo` is not meant to be a Python private attribute, but the actual name of the type member.
Like sock.__sk_common here: https://github.com/torvalds/linux/blob/62fb9874f5da54fdb243003b386128037319b219/include/net/sock.h#L354

We need to strip the '_classname' prefix from the attribute's name before continuing with the member attribute lookup.
2021-06-30 13:25:07 +10:00
ikelosandGitHub c3107986fc Merge pull request #401 from volatilityfoundation/issues/issue400
Objects: Avoid reconstructing pointed objects
2021-06-02 20:30:42 +01:00
Mike Auty a9e91ea19b Objects: Writing an object should return the re-read object 2021-03-07 16:08:36 +00:00
Mike Auty 1b57a899e8 Objects: Encode strings as bytes when writing 2021-03-05 01:16:14 +00:00
Mike Auty 963b448d36 Objects: Revert setting attributes to write data 2021-03-05 01:13:34 +00:00
Mike Auty 681b68f252 Objects: Improve writing of objects 2021-02-28 02:44:41 +00:00
Mike Auty 116df8d166 Objects: Avoid reconstructing pointed objects 2021-02-05 01:13:33 +00:00
Mike Auty d4fd89d095 Merge branch 'release/v1.0.0' into develop 2021-01-27 20:41:35 +00:00
Mike Auty 3911098d27 Core: Rename the top level namespace 2021-01-20 21:21:16 +00:00