Home
last modified time | relevance | path

Searched refs:TType (Results 1 – 25 of 180) sorted by relevance

12345678

/thrift-3.4.0/lib/netstd/Tests/Thrift.Tests/Protocols/
DTJsonProtocolHelperTests.cs35 var sets = new List<Tuple<TType, byte[]>> in GetTypeNameForTypeId_Test()
37 new Tuple<TType, byte[]>(TType.Bool, TJSONProtocolConstants.TypeNames.NameBool), in GetTypeNameForTypeId_Test()
38 new Tuple<TType, byte[]>(TType.Byte, TJSONProtocolConstants.TypeNames.NameByte), in GetTypeNameForTypeId_Test()
39 new Tuple<TType, byte[]>(TType.I16, TJSONProtocolConstants.TypeNames.NameI16), in GetTypeNameForTypeId_Test()
40 new Tuple<TType, byte[]>(TType.I32, TJSONProtocolConstants.TypeNames.NameI32), in GetTypeNameForTypeId_Test()
41 new Tuple<TType, byte[]>(TType.I64, TJSONProtocolConstants.TypeNames.NameI64), in GetTypeNameForTypeId_Test()
42 new Tuple<TType, byte[]>(TType.Double, TJSONProtocolConstants.TypeNames.NameDouble), in GetTypeNameForTypeId_Test()
43 new Tuple<TType, byte[]>(TType.String, TJSONProtocolConstants.TypeNames.NameString), in GetTypeNameForTypeId_Test()
44 new Tuple<TType, byte[]>(TType.Struct, TJSONProtocolConstants.TypeNames.NameStruct), in GetTypeNameForTypeId_Test()
45 new Tuple<TType, byte[]>(TType.Map, TJSONProtocolConstants.TypeNames.NameMap), in GetTypeNameForTypeId_Test()
[all …]
/thrift-3.4.0/lib/netstd/Thrift/Protocol/Utilities/
DTJsonProtocolHelper.cs25 public static byte[] GetTypeNameForTypeId(TType typeId) in GetTypeNameForTypeId()
29 case TType.Bool: in GetTypeNameForTypeId()
31 case TType.Byte: in GetTypeNameForTypeId()
33 case TType.I16: in GetTypeNameForTypeId()
35 case TType.I32: in GetTypeNameForTypeId()
37 case TType.I64: in GetTypeNameForTypeId()
39 case TType.Double: in GetTypeNameForTypeId()
41 case TType.String: in GetTypeNameForTypeId()
43 case TType.Struct: in GetTypeNameForTypeId()
45 case TType.Map: in GetTypeNameForTypeId()
[all …]
DTProtocolUtil.cs27 …public static async Task SkipAsync(TProtocol protocol, TType type, CancellationToken cancellationT… in SkipAsync()
36 case TType.Bool: in SkipAsync()
39 case TType.Byte: in SkipAsync()
42 case TType.I16: in SkipAsync()
45 case TType.I32: in SkipAsync()
48 case TType.I64: in SkipAsync()
51 case TType.Double: in SkipAsync()
54 case TType.String: in SkipAsync()
58 case TType.Uuid: in SkipAsync()
61 case TType.Struct: in SkipAsync()
[all …]
/thrift-3.4.0/lib/py/src/
DTRecursive.py18 from thrift.Thrift import TType
33 elif thrift_spec[TYPE_IDX] == TType.STRUCT:
36 elif thrift_spec[TYPE_IDX] in (TType.LIST, TType.SET):
38 elif thrift_spec[TYPE_IDX] == TType.MAP:
47 if element_type[0] == TType.STRUCT:
49 elif element_type[0] in (TType.LIST, TType.SET):
51 elif element_type[0] == TType.MAP:
70 if element_type[0] == TType.STRUCT:
72 elif element_type[0] in (TType.LIST, TType.SET):
74 elif element_type[0] == TType.MAP:
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/partial/
DThriftMetadataTest.java38 import org.apache.thrift.protocol.TType;
67 validateFieldMetadata(testStruct, 1, "byteField", TType.BYTE); in testThriftStructOf()
68 validateFieldMetadata(testStruct, 2, "i16Field", TType.I16); in testThriftStructOf()
69 validateFieldMetadata(testStruct, 3, "i32Field", TType.I32); in testThriftStructOf()
70 validateFieldMetadata(testStruct, 4, "i64Field", TType.I64); in testThriftStructOf()
71 validateFieldMetadata(testStruct, 5, "doubleField", TType.DOUBLE); in testThriftStructOf()
72 validateFieldMetadata(testStruct, 6, "stringField", TType.STRING); in testThriftStructOf()
73 validateFieldMetadata(testStruct, 7, "enumField", TType.ENUM); in testThriftStructOf()
74 validateFieldMetadata(testStruct, 8, "binaryField", TType.STRING); in testThriftStructOf()
76 validateListFieldMetadata(testStruct, 10, "byteList", TType.BYTE); in testThriftStructOf()
[all …]
/thrift-3.4.0/lib/php/src/
DThrift.php26 class TType class
89 static $tmethod = array(TType::BOOL => 'Bool',
90 TType::BYTE => 'Byte',
91 TType::I16 => 'I16',
92 TType::I32 => 'I32',
93 TType::I64 => 'I64',
94 TType::DOUBLE => 'Double',
95 TType::STRING => 'String');
122 case TType::STRUCT:
127 case TType::MAP:
[all …]
/thrift-3.4.0/lib/php/lib/Base/
DTBase.php25 use Thrift\Type\TType; alias
37 TType::BOOL => 'Bool',
38 TType::BYTE => 'Byte',
39 TType::I16 => 'I16',
40 TType::I32 => 'I32',
41 TType::I64 => 'I64',
42 TType::DOUBLE => 'Double',
43 TType::STRING => 'String'
92 case TType::STRUCT:
97 case TType::MAP:
[all …]
/thrift-3.4.0/lib/php/lib/Exception/
DTException.php25 use Thrift\Type\TType; alias
60 TType::BOOL => 'Bool',
61 TType::BYTE => 'Byte',
62 TType::I16 => 'I16',
63 TType::I32 => 'I32',
64 TType::I64 => 'I64',
65 TType::DOUBLE => 'Double',
66 TType::STRING => 'String'
94 case TType::STRUCT:
99 case TType::MAP:
[all …]
/thrift-3.4.0/lib/php/lib/Protocol/
DTProtocol.php27 use Thrift\Type\TType; alias
184 * @param TType $type What type is it
189 case TType::BOOL:
191 case TType::BYTE:
193 case TType::I16:
195 case TType::I32:
197 case TType::I64:
199 case TType::DOUBLE:
201 case TType::STRING:
203 case TType::STRUCT:
[all …]
/thrift-3.4.0/lib/javame/src/org/apache/thrift/protocol/
DTProtocolUtil.java77 case TType.BOOL: in skip()
82 case TType.BYTE: in skip()
87 case TType.I16: in skip()
92 case TType.I32: in skip()
97 case TType.I64: in skip()
102 case TType.DOUBLE: in skip()
107 case TType.STRING: in skip()
112 case TType.STRUCT: in skip()
117 if (field.type == TType.STOP) { in skip()
126 case TType.MAP: in skip()
[all …]
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/protocol/
DTProtocolUtil.java69 case TType.BOOL: in skip()
73 case TType.BYTE: in skip()
77 case TType.I16: in skip()
81 case TType.I32: in skip()
85 case TType.I64: in skip()
89 case TType.UUID: in skip()
93 case TType.DOUBLE: in skip()
97 case TType.STRING: in skip()
101 case TType.STRUCT: in skip()
105 if (field.type == TType.STOP) { in skip()
[all …]
/thrift-3.4.0/lib/perl/lib/Thrift/
DProtocol.pm338 if($type == Thrift::TType::BOOL)
342 elsif($type == Thrift::TType::BYTE){
345 elsif($type == Thrift::TType::I16){
348 elsif($type == Thrift::TType::I32){
351 elsif($type == Thrift::TType::I64){
354 elsif($type == Thrift::TType::DOUBLE){
357 elsif($type == Thrift::TType::STRING)
361 elsif($type == Thrift::TType::STRUCT)
367 if ($ftype == Thrift::TType::STOP) {
376 elsif($type == Thrift::TType::MAP)
[all …]
/thrift-3.4.0/lib/rs/src/protocol/
Dcompact.rs27 use super::{TOutputProtocol, TOutputProtocolFactory, TSetIdentifier, TStructIdentifier, TType};
83 fn read_list_set_begin(&mut self) -> crate::Result<(TType, i32)> { in read_list_set_begin() argument
170 Ok(TType::Bool) in read_field_begin()
174 Ok(TType::Bool) in read_field_begin()
180 TType::Stop => Ok( in read_field_begin()
183 TType::Stop, in read_field_begin()
395 element_type: TType, in write_list_set_begin() argument
457 TType::Bool => { in write_field_begin()
483 self.write_byte(type_to_u8(TType::Stop)) in write_field_stop()
620 fn collection_type_to_u8(field_type: TType) -> u8 { in collection_type_to_u8()
[all …]
Dbinary.rs25 use super::{TOutputProtocol, TOutputProtocolFactory, TSetIdentifier, TStructIdentifier, TType};
144 TType::Stop => Ok(0), in read_field_begin()
199 let element_type: TType = self.read_byte().and_then(field_type_from_u8)?; in read_list_begin()
209 let element_type: TType = self.read_byte().and_then(field_type_from_u8)?; in read_set_begin()
219 let key_type: TType = self.read_byte().and_then(field_type_from_u8)?; in read_map_begin()
220 let value_type: TType = self.read_byte().and_then(field_type_from_u8)?; in read_map_begin()
329 if identifier.id.is_none() && identifier.field_type != TType::Stop { in write_field_begin()
352 self.write_byte(field_type_to_u8(TType::Stop)) in write_field_stop()
458 fn field_type_to_u8(field_type: TType) -> u8 { in field_type_to_u8()
460 TType::Stop => 0x00, in field_type_to_u8()
[all …]
Dmod.rs190 fn skip(&mut self, field_type: TType) -> crate::Result<()> { in skip()
194 fn skip_till_depth(&mut self, field_type: TType, depth: i8) -> crate::Result<()> { in skip_till_depth() argument
203 TType::Bool => self.read_bool().map(|_| ()), in skip_till_depth()
204 TType::I08 => self.read_i8().map(|_| ()), in skip_till_depth()
205 TType::I16 => self.read_i16().map(|_| ()), in skip_till_depth()
206 TType::I32 => self.read_i32().map(|_| ()), in skip_till_depth()
207 TType::I64 => self.read_i64().map(|_| ()), in skip_till_depth()
208 TType::Double => self.read_double().map(|_| ()), in skip_till_depth()
209 TType::String => self.read_string().map(|_| ()), in skip_till_depth()
210 TType::Struct => { in skip_till_depth()
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/protocol/
DTestTField.java32 assertEquals(TType.STOP, uut.type); in testConstructor()
35 uut = new TField("foo", TType.VOID, (short) 42); in testConstructor()
37 assertEquals(TType.VOID, uut.type); in testConstructor()
48 uut1 = new TField("foo", TType.I32, (short) 1); in testEquality()
49 uut2 = new TField("foo", TType.I32, (short) 2); in testEquality()
53 uut1 = new TField("foo", TType.VOID, (short) 1); in testEquality()
54 uut2 = new TField("foo", TType.I32, (short) 1); in testEquality()
58 uut1 = new TField("foo", TType.VOID, (short) 5); in testEquality()
59 uut2 = new TField("bar", TType.I32, (short) 5); in testEquality()
/thrift-3.4.0/lib/netstd/Thrift/Protocol/
DTCompactProtocol.cs48 private static readonly TType[] CompactTypeToTType = new TType[14];
90 TTypeToCompactType[(int)TType.Stop] = Types.Stop; in TCompactProtocol()
91 TTypeToCompactType[(int)TType.Bool] = Types.BooleanTrue; in TCompactProtocol()
92 TTypeToCompactType[(int)TType.Byte] = Types.Byte; in TCompactProtocol()
93 TTypeToCompactType[(int)TType.I16] = Types.I16; in TCompactProtocol()
94 TTypeToCompactType[(int)TType.I32] = Types.I32; in TCompactProtocol()
95 TTypeToCompactType[(int)TType.I64] = Types.I64; in TCompactProtocol()
96 TTypeToCompactType[(int)TType.Double] = Types.Double; in TCompactProtocol()
97 TTypeToCompactType[(int)TType.String] = Types.Binary; in TCompactProtocol()
98 TTypeToCompactType[(int)TType.List] = Types.List; in TCompactProtocol()
[all …]
/thrift-3.4.0/lib/dart/test/protocol/
Dt_protocol_test.dart34 case TType.BOOL:
37 case TType.BYTE:
40 case TType.I16:
43 case TType.I32:
46 case TType.I64:
49 case TType.DOUBLE:
52 case TType.STRING:
56 throw UnsupportedError("Unsupported TType $tType");
114 var input = TField('my field', TType.MAP, 123);
131 var input = TMap(TType.STRING, TType.STRUCT, 123);
[all …]
/thrift-3.4.0/lib/d/src/thrift/protocol/
Dbase.d37 enum TType : byte { enum
68 TType type;
74 TType elemType;
80 TType keyType;
81 TType valueType;
94 TType elemType;
262 void skip(Protocol)(Protocol prot, TType type) if (is(Protocol : TProtocol)) {
264 case TType.BOOL:
268 case TType.BYTE:
272 case TType.I16:
[all …]
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/
DTDeserializer.java40 import org.apache.thrift.protocol.TType;
216 return (Boolean) partialDeserializeField(TType.BOOL, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeBool()
231 return (Byte) partialDeserializeField(TType.BYTE, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeByte()
246 return (Double) partialDeserializeField(TType.DOUBLE, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeDouble()
261 return (Short) partialDeserializeField(TType.I16, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeI16()
276 return (Integer) partialDeserializeField(TType.I32, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeI32()
291 return (Long) partialDeserializeField(TType.I64, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeI64()
306 return (String) partialDeserializeField(TType.STRING, bytes, fieldIdPathFirst, fieldIdPathRest); in partialDeserializeString()
364 case TType.BOOL: in partialDeserializeField()
366 case TType.BYTE: in partialDeserializeField()
[all …]
/thrift-3.4.0/lib/delphi/src/
DThrift.Protocol.pas39 TType = (
65 TType.Stop, TType.Void,
66TType.Bool_, TType.Byte_, TType.Double_, TType.I16, TType.I32, TType.I64, TType.String_, TType.Uui…
67 TType.Struct, TType.Map, TType.Set_, TType.List
87 Type_: TType;
92 ElementType: TType;
97 KeyType: TType;
98 ValueType: TType;
103 ElementType: TType;
181 class procedure Skip( prot: IProtocol; type_: TType);
[all …]
/thrift-3.4.0/lib/swift/Sources/
DTSerializable.swift26 static var thriftType: TType { get }
42 public var thriftType: TType { return Self.thriftType } in read()
49 public static var thriftType: TType { return .bool }
61 public static var thriftType: TType { return .i8 }
73 public static var thriftType: TType { return .i16 }
85 public static var thriftType: TType { return .i32 }
98 public static var thriftType: TType { return .i64 }
110 public static var thriftType: TType { return .double }
122 public static var thriftType: TType { return .string }
134 public static var thriftType: TType { .uuid }
DTProtocol.swift29 public enum TType: Int32 {
55 func readFieldBegin() throws -> (String, TType, Int32) in readMessageBegin()
57 func readMapBegin() throws -> (TType, TType, Int32) in readMessageBegin()
59 func readSetBegin() throws -> (TType, Int32) in readMessageBegin()
61 func readListBegin() throws -> (TType, Int32) in readMessageBegin()
81 func writeFieldBegin(name: String, type fieldType: TType, fieldID: Int32) throws in readMessageBegin()
84 func writeMapBegin(keyType: TType, valueType: TType, size: Int32) throws in readMessageBegin()
86 func writeSetBegin(elementType: TType, size: Int32) throws in readMessageBegin()
88 func writeListBegin(elementType: TType, size: Int32) throws in readMessageBegin()
104 func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws { in readMessageBegin()
[all …]
/thrift-3.4.0/lib/lua/
DTCompactProtocol.lua68 TTypeToCompactType[TType.STOP] = TType.STOP
69 TTypeToCompactType[TType.BOOL] = TCompactType.COMPACT_BOOLEAN_TRUE
70 TTypeToCompactType[TType.BYTE] = TCompactType.COMPACT_BYTE
71 TTypeToCompactType[TType.I16] = TCompactType.COMPACT_I16
72 TTypeToCompactType[TType.I32] = TCompactType.COMPACT_I32
73 TTypeToCompactType[TType.I64] = TCompactType.COMPACT_I64
74 TTypeToCompactType[TType.DOUBLE] = TCompactType.COMPACT_DOUBLE
75 TTypeToCompactType[TType.STRING] = TCompactType.COMPACT_BINARY
76 TTypeToCompactType[TType.LIST] = TCompactType.COMPACT_LIST
77 TTypeToCompactType[TType.SET] = TCompactType.COMPACT_SET
[all …]
/thrift-3.4.0/lib/javame/src/org/apache/thrift/meta_data/
DFieldValueMetaData.java40 import org.apache.thrift.protocol.TType;
55 return type == TType.STRUCT; in isStruct()
59 return type == TType.LIST || type == TType.MAP || type == TType.SET; in isContainer()

12345678