STextContainer &GetTextContainer(int Index)
{
dbg_assert(Index >= 0, "Text container index was invalid.");
if(Index >= (int)m_vpTextContainers.size())
{
int Size = (int)m_vpTextContainers.size();
for(int i = 0; i < (Index + 1) - Size; ++i)
m_vpTextContainers.push_back(new STextContainer());
}
return *m_vpTextContainers[Index];
}
This could create text containers unexpectedly I think (edited)cargo add libtw2
bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "525.105.17", backend: Vulkan }
bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "525.105.17", backend: Vulkan }
2023-05-05 13:50:18 I http: fetching https://info.ddnet.org/info?name=Ryozuki
2023-05-05 13:50:18 I http: task done https://info.ddnet.org/info?name=Ryozuki
2023-05-05 13:50:18 I http: fetching https://info.ddnet.org/info?name=Ryozuki
2023-05-05 13:50:18 I http: task done https://info.ddnet.org/info?name=Ryozuki
export SDL_AUDIODRIVER=pipewire
?❯ upx --best DDNet
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2023
UPX 4.0.2 Markus Oberhumer, Laszlo Molnar & John Reiser Jan 30th 2023
File size Ratio Format Name
-------------------- ------ ----------- -----------
4287272 -> 1584652 36.96% linux/amd64 DDNet
Packed 1 file.
❯ upx --best DDNet
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2023
UPX 4.0.2 Markus Oberhumer, Laszlo Molnar & John Reiser Jan 30th 2023
File size Ratio Format Name
-------------------- ------ ----------- -----------
4287272 -> 1584652 36.96% linux/amd64 DDNet
Packed 1 file.
target/debug/teecity: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
(edited)$ readelf -p .comment <executable-file>
--------
for some timeclass C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
print("getter of x called")
return self._x
@x.setter
def x(self, value):
print("setter of x called")
self._x = value
@x.deleter
def x(self):
print("deleter of x called")
del self._x
c = C()
c.x = 'foo' # setter called
foo = c.x # getter called
del c.x # deleter called
class A:
def __init__(self):
readfile(...)
## some magic code here
a = A()
a.x= 32 ## this should go through special function to update some byte array
class C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
print("getter of x called")
return self._x
@x.setter
def x(self, value):
print("setter of x called")
self._x = value
@x.deleter
def x(self):
print("deleter of x called")
del self._x
c = C()
c.x = 'foo' # setter called
foo = c.x # getter called
del c.x # deleter called
class C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
print("getter of x called")
return self._x
@x.setter
def x(self, value):
print("setter of x called")
self._x = value
@x.deleter
def x(self):
print("deleter of x called")
del self._x
c = C()
c.x = 'foo' # setter called
foo = c.x # getter called
del c.x # deleter called