Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexandre-lavoie/python-log4rce
/ str_size
Method
str_size
log4rce.py:86–87 ·
view source on GitHub ↗
(cls, data: str)
Source
from the content-addressed store, hash-verified
84
85
@classmethod
86
def
str_size(cls, data: str) -> bytes:
87
return
b
"\x01"
+ struct.pack(
"!H"
, len(data))
88
89
@property
90
def
raw(self) -> bytes:
Callers
1
inject
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected