⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.61
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
python38
/
lib
/
python3.8
/
ctypes
/
test
/
View File Name :
test_sizes.py
# Test specifically-sized containers. from ctypes import * import unittest class SizesTestCase(unittest.TestCase): def test_8(self): self.assertEqual(1, sizeof(c_int8)) self.assertEqual(1, sizeof(c_uint8)) def test_16(self): self.assertEqual(2, sizeof(c_int16)) self.assertEqual(2, sizeof(c_uint16)) def test_32(self): self.assertEqual(4, sizeof(c_int32)) self.assertEqual(4, sizeof(c_uint32)) def test_64(self): self.assertEqual(8, sizeof(c_int64)) self.assertEqual(8, sizeof(c_uint64)) def test_size_t(self): self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) def test_ssize_t(self): self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t)) if __name__ == "__main__": unittest.main()