Home
last modified time | relevance | path

Searched refs:Structure (Results 1 – 25 of 447) sorted by relevance

12345678910>>...18

/external/python/cpython3/Lib/test/test_ctypes/
Dtest_structures.py5 from ctypes import (CDLL, Array, Structure, Union, POINTER, sizeof, byref, alignment,
22 class X(Structure):
39 class X(Structure):
77 self.assertEqual(Structure.mro(), [Structure, _CData, object])
84 for cls in Structure, PyCStructType:
86 self.assertTrue(Structure.__flags__ & Py_TPFLAGS_IMMUTABLETYPE)
87 self.assertFalse(Structure.__flags__ & Py_TPFLAGS_DISALLOW_INSTANTIATION)
93 (Structure,), {})
94 for cls in Structure, NewStructure:
100 class T(Structure):
[all …]
Dtest_struct_fields.py2 from ctypes import Structure, Union, sizeof, c_char, c_int
18 class X(Structure):
25 class X(Structure):
30 class X(Structure):
36 class X(Structure):
38 class Y(Structure):
43 class X(Structure):
52 class X(Structure):
70 class BrokenStructure(Structure):
81 class MyCStruct(Structure):
[all …]
Dtest_anon.py3 from ctypes import c_int, Union, Structure, sizeof
13 class Y(Structure):
28 lambda: type(Structure)("Name",
29 (Structure,),
35 lambda: type(Structure)("Name",
36 (Structure,),
47 class Name(Structure):
53 class ANON_S(Structure):
61 class Y(Structure):
Dtest_bitfields.py3 from ctypes import (CDLL, Structure, sizeof, POINTER, byref, alignment,
13 class BITS(Structure):
66 class X(Structure):
77 class X(Structure):
90 class X(Structure):
107 class X(Structure):
121 return self.get_except(type(Structure), "X", (),
139 class Dummy(Structure):
158 class X(Structure):
162 class X(Structure):
[all …]
Dtest_pep3118.py5 Structure, LittleEndianStructure, BigEndianStructure,
79 class Point(Structure):
82 class PackedPoint(Structure):
86 class PointMidPad(Structure):
89 class PackedPointMidPad(Structure):
93 class PointEndPad(Structure):
96 class PackedPointEndPad(Structure):
100 class Point2(Structure):
104 class EmptyStruct(Structure):
110 class StructWithArrays(Structure):
[all …]
Dtest_internals.py16 from ctypes import Structure, POINTER, c_char_p, c_int
38 class X(Structure):
50 class X(Structure):
53 class Y(Structure):
66 class X(Structure):
69 class Y(Structure):
85 class X(Structure):
Dtest_keeprefs.py2 from ctypes import (Structure, POINTER, pointer, _pointer_type_cache,
26 class X(Structure):
37 class X(Structure):
48 class POINT(Structure):
50 class RECT(Structure):
82 class X(Structure):
104 class POINT(Structure):
106 class RECT(Structure):
D_support.py4 from _ctypes import Structure, Union, _Pointer, Array, _SimpleCData, CFuncPtr
7 _CData = Structure.__base__
10 class _X(Structure):
15 PyCStructType = type(Structure)
/external/cronet/stable/net/third_party/quiche/src/quiche/http2/decoder/
Dhttp2_structure_decoder_remaining_payload_test.cc37 template <class Structure>
46 void RandomizeStructure(Structure* ptr) { in RandomizeStructure()
54 structure_ = std::make_unique<Structure>(); in StartDecoding()
64 << "; needed=" << Structure::EncodedSize(); in StartDecoding()
76 EXPECT_EQ(consumed_payload, Structure::EncodedSize()); in StartDecoding()
79 EXPECT_LT(avail, Structure::EncodedSize()); in StartDecoding()
94 EXPECT_LT(old_offset, Structure::EncodedSize()); in ResumeDecoding()
95 const uint32_t needed = Structure::EncodedSize() - old_offset; in ResumeDecoding()
103 EXPECT_EQ(structure_decoder_.offset(), Structure::EncodedSize()); in ResumeDecoding()
126 EXPECT_LT(structure_decoder_.offset(), Structure::EncodedSize()); in ResumeDecoding()
[all …]
/external/cronet/tot/net/third_party/quiche/src/quiche/http2/decoder/
Dhttp2_structure_decoder_remaining_payload_test.cc37 template <class Structure>
46 void RandomizeStructure(Structure* ptr) { in RandomizeStructure()
54 structure_ = std::make_unique<Structure>(); in StartDecoding()
64 << "; needed=" << Structure::EncodedSize(); in StartDecoding()
76 EXPECT_EQ(consumed_payload, Structure::EncodedSize()); in StartDecoding()
79 EXPECT_LT(avail, Structure::EncodedSize()); in StartDecoding()
94 EXPECT_LT(old_offset, Structure::EncodedSize()); in ResumeDecoding()
95 const uint32_t needed = Structure::EncodedSize() - old_offset; in ResumeDecoding()
103 EXPECT_EQ(structure_decoder_.offset(), Structure::EncodedSize()); in ResumeDecoding()
126 EXPECT_LT(structure_decoder_.offset(), Structure::EncodedSize()); in ResumeDecoding()
[all …]
/external/emboss/compiler/util/
Dtest_util_test.py31 ir_data.Structure(
34 ir_data.Structure(field=[ir_data.Field()])))
40 ir_data.Structure(
43 ir_data.Structure(field=[ir_data.Field()])))
49 ir_data.Structure(
52 ir_data.Structure(field=[ir_data.Field(), ir_data.Field()])))
57 ir_data.Structure(field=[]),
58 ir_data.Structure(source_location=ir_data.Location())))
65 ir_data.Structure(
68 ir_data.Structure(
[all …]
/external/scapy/scapy/arch/windows/
Dstructures.py17 Structure,
84 if issubclass(ctype, (Structure, ctypes.Union)):
116 class SERVICE_STATUS(Structure):
180 class in_addr(Structure):
184 class in6_addr(Structure):
188 class sockaddr_in(Structure):
195 class sockaddr_in6(Structure):
239 class SOCKET_ADDRESS(ctypes.Structure):
244 class _IP_ADAPTER_ADDRESSES_METRIC(Structure):
249 class IP_ADAPTER_UNICAST_ADDRESS(Structure):
[all …]
/external/python/cpython3/Lib/ctypes/
D_endian.py2 from ctypes import Array, Structure, Union
19 if issubclass(typ, (Structure, Union)):
34 class _swapped_struct_meta(_swapped_meta, type(Structure)): pass
46 LittleEndianStructure = Structure
48 class BigEndianStructure(Structure, metaclass=_swapped_struct_meta):
63 BigEndianStructure = Structure
65 class LittleEndianStructure(Structure, metaclass=_swapped_struct_meta):
Dwintypes.py97 class RECT(ctypes.Structure):
104 class _SMALL_RECT(ctypes.Structure):
111 class _COORD(ctypes.Structure):
115 class POINT(ctypes.Structure):
120 class SIZE(ctypes.Structure):
128 class FILETIME(ctypes.Structure):
133 class MSG(ctypes.Structure):
143 class WIN32_FIND_DATAA(ctypes.Structure):
155 class WIN32_FIND_DATAW(ctypes.Structure):
/external/capstone/bindings/python/capstone/
Dm68k.py8 class M68KOpMem(ctypes.Structure):
23 class M68KOpRegPair(ctypes.Structure):
38 class M68KOpBrDisp(ctypes.Structure):
44 class M68KOp(ctypes.Structure):
78 class M68KOpSize(ctypes.Structure):
87 class CsM68K(ctypes.Structure):
Dtms320c64x.py7 class TMS320C64xOpMem(ctypes.Structure):
25 class TMS320C64xCondition(ctypes.Structure):
31 class TMS320C64xFunctionalUnit(ctypes.Structure):
38 class TMS320C64xOp(ctypes.Structure):
56 class CsTMS320C64x(ctypes.Structure):
Dm680x.py8 class M680xOpIdx(ctypes.Structure):
19 class M680xOpRel(ctypes.Structure):
25 class M680xOpExt(ctypes.Structure):
42 class M680xOp(ctypes.Structure):
79 class CsM680x(ctypes.Structure):
Dppc.py8 class PpcOpMem(ctypes.Structure):
14 class PpcOpCrx(ctypes.Structure):
29 class PpcOp(ctypes.Structure):
52 class CsPpc(ctypes.Structure):
Darm.py8 class ArmOpMem(ctypes.Structure):
17 class ArmOpShift(ctypes.Structure):
32 class ArmOp(ctypes.Structure):
64 class CsArm(ctypes.Structure):
Darm64.py8 class Arm64OpMem(ctypes.Structure):
15 class Arm64OpShift(ctypes.Structure):
33 class Arm64Op(ctypes.Structure):
79 class CsArm64(ctypes.Structure):
/external/scapy/scapy/libs/
Dwinpcapy.py58 class bpf_version(Structure):
63 class timeval(Structure):
76 class sockaddr(Structure):
81 class sockaddr_in(Structure):
88 class sockaddr_in6(Structure):
96 class sockaddr_dl(Structure):
109 class sockaddr(Structure):
113 class sockaddr_in(Structure):
118 class sockaddr_in6(Structure):
137 class pcap_file_header(Structure):
[all …]
Dstructures.py12 class bpf_insn(ctypes.Structure):
20 class bpf_program(ctypes.Structure):
26 class sock_fprog(ctypes.Structure):
/external/capstone/bindings/java/capstone/
DM680x.java6 import com.sun.jna.Structure;
16 public static class OpIndexed extends Structure {
31 public static class OpRelative extends Structure {
41 public static class OpExtended extends Structure {
66 public static class Operand extends Structure {
DPpc.java6 import com.sun.jna.Structure;
16 public static class MemType extends Structure {
26 public static class CrxType extends Structure {
44 public static class Operand extends Structure {
/external/python/cpython3/Lib/test/leakers/
Dtest_ctypes.py4 from ctypes import Structure, c_int, POINTER
8 class POINT(Structure):
10 class RECT(Structure):

12345678910>>...18