/dports/devel/py-srsly/srsly-2.4.2/srsly/tests/msgpack/ |
H A D | test_extension.py | 3 from srsly.msgpack._ext_type import ExtType 28 check(b"\xd4\x42A", ExtType(0x42, b"A")) # fixext 1 29 check(b"\xd5\x42AB", ExtType(0x42, b"AB")) # fixext 2 30 check(b"\xd6\x42ABCD", ExtType(0x42, b"ABCD")) # fixext 4 31 check(b"\xd7\x42ABCDEFGH", ExtType(0x42, b"ABCDEFGH")) # fixext 8 32 check(b"\xd8\x42" + b"A" * 16, ExtType(0x42, b"A" * 16)) # fixext 16 33 check(b"\xc7\x03\x42ABC", ExtType(0x42, b"ABC")) # ext 8 34 check(b"\xc8\x01\x23\x42" + b"A" * 0x0123, ExtType(0x42, b"A" * 0x0123)) # ext 16 37 ExtType(0x42, b"A" * 0x00012345), 47 return ExtType(typecode, data)
|
H A D | test_newspec.py | 1 from srsly.msgpack import packb, unpackb, ExtType 73 check(ExtType(0x42, b"Z"), b"\xd4\x42Z") # fixext 1 74 check(ExtType(0x42, b"ZZ"), b"\xd5\x42ZZ") # fixext 2 75 check(ExtType(0x42, b"Z" * 4), b"\xd6\x42" + b"Z" * 4) # fixext 4 76 check(ExtType(0x42, b"Z" * 8), b"\xd7\x42" + b"Z" * 8) # fixext 8 77 check(ExtType(0x42, b"Z" * 16), b"\xd8\x42" + b"Z" * 16) # fixext 16 79 check(ExtType(0x42, b""), b"\xc7\x00\x42") 80 check(ExtType(0x42, b"Z" * 255), b"\xc7\xff\x42" + b"Z" * 255) 82 check(ExtType(0x42, b"Z" * 256), b"\xc8\x01\x00\x42" + b"Z" * 256) 83 check(ExtType(0x42, b"Z" * 0xFFFF), b"\xc8\xff\xff\x42" + b"Z" * 0xFFFF) [all …]
|
H A D | test_unpack.py | 4 from srsly.msgpack import Unpacker, packb, OutOfData, ExtType 56 return ExtType(code, data) 61 unpacker.feed(packb({"a": ExtType(1, b"123")})) 63 unpacker.feed(packb({"a": ExtType(2, b"321")})) 64 assert unpacker.unpack() == {"a": ExtType(2, b"321")}
|
/dports/devel/py-msgpack/msgpack-1.0.3/test/ |
H A D | test_extension.py | 4 from msgpack import ExtType 29 check(b"\xd4\x42A", ExtType(0x42, b"A")) # fixext 1 30 check(b"\xd5\x42AB", ExtType(0x42, b"AB")) # fixext 2 31 check(b"\xd6\x42ABCD", ExtType(0x42, b"ABCD")) # fixext 4 32 check(b"\xd7\x42ABCDEFGH", ExtType(0x42, b"ABCDEFGH")) # fixext 8 33 check(b"\xd8\x42" + b"A" * 16, ExtType(0x42, b"A" * 16)) # fixext 16 34 check(b"\xc7\x03\x42ABC", ExtType(0x42, b"ABC")) # ext 8 35 check(b"\xc8\x01\x23\x42" + b"A" * 0x0123, ExtType(0x42, b"A" * 0x0123)) # ext 16 38 ExtType(0x42, b"A" * 0x00012345), 51 return ExtType(typecode, data)
|
H A D | test_newspec.py | 3 from msgpack import packb, unpackb, ExtType 77 check(ExtType(0x42, b"Z"), b"\xd4\x42Z") # fixext 1 78 check(ExtType(0x42, b"ZZ"), b"\xd5\x42ZZ") # fixext 2 79 check(ExtType(0x42, b"Z" * 4), b"\xd6\x42" + b"Z" * 4) # fixext 4 80 check(ExtType(0x42, b"Z" * 8), b"\xd7\x42" + b"Z" * 8) # fixext 8 81 check(ExtType(0x42, b"Z" * 16), b"\xd8\x42" + b"Z" * 16) # fixext 16 83 check(ExtType(0x42, b""), b"\xc7\x00\x42") 84 check(ExtType(0x42, b"Z" * 255), b"\xc7\xff\x42" + b"Z" * 255) 86 check(ExtType(0x42, b"Z" * 256), b"\xc8\x01\x00\x42" + b"Z" * 256) 87 check(ExtType(0x42, b"Z" * 0xFFFF), b"\xc8\xff\xff\x42" + b"Z" * 0xFFFF) [all …]
|
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/utils/ |
H A D | serialize.py | 10 def encoded(typ, data, ExtType): argument 11 if ExtType is None: 13 return ExtType(typ, msgpack_dumps(data)) 18 ExtType = None 21 ExtType = msgpack.ExtType 25 return encoded(0, str(obj.isoformat()), ExtType) 27 return encoded(1, tuple(obj), ExtType) 35 2, metadata_as_dict(obj, encode_cover_data=for_json), ExtType 38 return encoded(3, fm_as_dict(obj), ExtType) 40 return encoded(4, obj.as_dict(), ExtType)
|
/dports/lang/cython/Cython-0.29.24/tests/run/ |
H A D | final_in_pxd.srctree | 19 cdef class ExtType: 28 cdef class FinalExtSubType(ExtType): 31 cdef class NonFinalSubType(ExtType): 39 class ExtType(object): 49 class FinalExtSubType(ExtType): 54 class NonFinalSubType(ExtType): 62 assert ExtType().final_func() == 1
|
H A D | self_in_ext_type_closure.pyx | 7 class ExtType(object): class 13 >>> x = ExtType() 23 >>> x = ExtType() 33 >>> x = ExtType() 45 >>> x = ExtType() 55 >>> x = ExtType()
|
H A D | r_typecast.pyx | 1 cdef class ExtType: class 8 def call_method(ExtType et): 10 >>> call_method( ExtType() ).method() 13 return <ExtType>et.c_method()
|
H A D | cdef_function_kwargs.pyx | 206 cdef class ExtType: class 212 def call_cmeth(self, ExtType ext): 214 >>> x = ExtType() 237 def call_cpmeth(self, ExtType ext): 239 >>> x = ExtType() 262 def call_optargs(self, ExtType ext): 264 >>> x = ExtType() 301 def call_cpmeth_optargs(self, ExtType ext): 303 >>> x = ExtType() 340 def call_cpmeth_optargs1(self, ExtType ext): [all …]
|
/dports/lang/cython-devel/cython-2b1e743/tests/run/ |
H A D | final_in_pxd.srctree | 19 cdef class ExtType: 28 cdef class FinalExtSubType(ExtType): 31 cdef class NonFinalSubType(ExtType): 39 class ExtType(object): 49 class FinalExtSubType(ExtType): 54 class NonFinalSubType(ExtType): 62 assert ExtType().final_func() == 1
|
H A D | self_in_ext_type_closure.pyx | 7 class ExtType(object): class 13 >>> x = ExtType() 23 >>> x = ExtType() 33 >>> x = ExtType() 45 >>> x = ExtType() 55 >>> x = ExtType()
|
H A D | r_typecast.pyx | 1 cdef class ExtType: class 8 def call_method(ExtType et): 10 >>> call_method( ExtType() ).method() 13 return <ExtType>et.c_method()
|
H A D | cdef_function_kwargs.pyx | 206 cdef class ExtType: class 212 def call_cmeth(self, ExtType ext): 214 >>> x = ExtType() 237 def call_cpmeth(self, ExtType ext): 239 >>> x = ExtType() 262 def call_optargs(self, ExtType ext): 264 >>> x = ExtType() 301 def call_cpmeth_optargs(self, ExtType ext): 303 >>> x = ExtType() 340 def call_cpmeth_optargs1(self, ExtType ext): [all …]
|
/dports/www/yaws/yaws-2.0.6/src/ |
H A D | mime_type_c.erl | 118 ExtType = get_ext_type(Ext), 129 {Ext, ExtType, MimeType, Charset}) 146 generate_t(Fd, Name, [{Ext,ExtType,MimeType,Charset}|Rest], 151 [Name, Ext, ExtType, MimeType, Charset]); 156 [Name, Ext, ExtType, MimeType, Charset, 157 Name, UExt, ExtType, MimeType, Charset]) 171 generate_revt(Fd, Name, [{Ext,ExtType,MimeType,Charset}|Rest], 178 [Name, RExt, ExtType, Ext, MimeType, Charset]); 184 [Name, RExt, ExtType, Ext, MimeType, Charset, 185 Name, RUExt, ExtType, UExt, MimeType, Charset])
|
/dports/irc/inspircd/inspircd-3.11.0/src/coremods/core_channel/ |
H A D | invite.h | 37 template<typename T, ExtensionItem::ExtensibleType ExtType> 46 template<typename T, ExtensionItem::ExtensibleType ExtType> 57 inv->Serialize(human, (ExtType == ExtensionItem::EXT_USER), ret); in ToString() 66 : ExtensionItem(extname, ExtType, owner) in ExtItem() 96 RemoveInvite(inv, (ExtType != ExtensionItem::EXT_USER), (ExtType == ExtensionItem::EXT_USER)); in free() 114 if (ExtType != ExtensionItem::EXT_CHANNEL) in FromInternal()
|
/dports/devel/libphonenumber/libphonenumber-8.12.39/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/ |
H A D | RangesTableSchema.java | 102 public enum ExtType { enum in RangesTableSchema 126 private static final ImmutableMap<ExtType, ValidNumberType> TYPE_MAP = 128 ExtType.FIXED_LINE, 129 ExtType.MOBILE, 130 ExtType.FIXED_LINE_OR_MOBILE, 131 ExtType.PAGER, 132 ExtType.PERSONAL_NUMBER, 133 ExtType.UAN, 134 ExtType.VOICEMAIL, 135 ExtType.VOIP) [all …]
|
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/cbindgen-0.20.0/tests/expectations/ |
H A D | external_workspace_child.both.c | 6 typedef struct ExtType { struct 8 } ExtType; typedef 10 void consume_ext(struct ExtType _ext);
|
H A D | workspace.both.c | 8 typedef struct ExtType { struct 10 } ExtType; argument 12 void consume_ext(struct ExtType _ext);
|
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/cargo-crates/cbindgen-0.13.2/tests/expectations/both/ |
H A D | external_workspace_child.c | 6 typedef struct ExtType { struct 8 } ExtType; typedef 10 void consume_ext(ExtType _ext);
|
H A D | workspace.c | 8 typedef struct ExtType { struct 10 } ExtType; argument 12 void consume_ext(ExtType _ext);
|
/dports/devel/rust-cbindgen/cbindgen-0.20.0/tests/expectations/ |
H A D | external_workspace_child.both.c | 6 typedef struct ExtType { struct 8 } ExtType; argument 10 void consume_ext(struct ExtType _ext);
|
/dports/graphics/libopenraw/libopenraw-0.3.0/cargo-crates/cbindgen-0.14.3/tests/expectations/both/ |
H A D | external_workspace_child.c | 6 typedef struct ExtType { struct 8 } ExtType; argument 10 void consume_ext(ExtType _ext);
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/cbindgen-0.9.1/tests/expectations/both/ |
H A D | external_workspace_child.c | 6 typedef struct ExtType { struct 8 } ExtType; argument 10 void consume_ext(ExtType _ext);
|
/dports/devel/py-maturin/maturin-0.11.3/cargo-crates/cbindgen-0.20.0/tests/expectations/ |
H A D | external_workspace_child.both.c | 6 typedef struct ExtType { struct 8 } ExtType; argument 10 void consume_ext(struct ExtType _ext);
|