Home
last modified time | relevance | path

Searched refs:Int64 (Results 1 – 25 of 80) sorted by relevance

1234

/thrift-3.4.0/lib/haxe/src/org/apache/thrift/helper/
DBitConverter.hx22 import haxe.Int64;
28 public static function DoubleToInt64Bits( db : Float) : Int64 {
35 public static function Int64BitsToDouble( i64 : Int64) : Float {
47 public static function fixedLongToBytes( n : Int64) : Bytes {
50 buf.set( 0, Int64.getLow( Int64.and( n, Int64.make(0, 0xff))));
51 buf.set( 1, Int64.getLow( Int64.and( Int64.shr( n, 8), Int64.make(0, 0xff))));
52 buf.set( 2, Int64.getLow( Int64.and( Int64.shr( n, 16), Int64.make(0, 0xff))));
53 buf.set( 3, Int64.getLow( Int64.and( Int64.shr( n, 24), Int64.make(0, 0xff))));
54 buf.set( 4, Int64.getLow( Int64.and( Int64.shr( n, 32), Int64.make(0, 0xff))));
55 buf.set( 5, Int64.getLow( Int64.and( Int64.shr( n, 40), Int64.make(0, 0xff))));
[all …]
DZigZag.hx22 import haxe.Int64;
67 public static function FromLong( n : Int64) : Int64 {
68 return Int64.xor( Int64.shl(n, 1), Int64.shr(n, 63));
75 public static function ToLong( n : Int64) : Int64 {
76 return Int64.xor(
77 Int64.and(
78 Int64.shr(n, 1),
79 Int64.make(0x7FFFFFFF, 0xFFFFFFFF)),
80 Int64.sub(
81 Int64.make(0, 0),
[all …]
DInt64Map.hx23 import haxe.Int64;
27 // Int64Map allows mapping of Int64 keys to arbitrary values.
30 class Int64Map<T> implements haxe.Constraints.IMap< Int64, T> {
53 private function GetLowMap( key : haxe.Int64, canCreate : Bool) : IntMap< T> {
55 return GetSubMap( Int64.getHigh(key), canCreate);
62 private function GetLowIndex( key : haxe.Int64) : haxe.Int32 {
64 return Int64.getLow(key);
71 private function NullCheck( key : haxe.Int64) : Bool {
75 return true; // Int64 is not nullable anymore (it never really was)
86 public function set( key : Int64, value : T ) : Void {
[all …]
/thrift-3.4.0/lib/nodets/test/
Dint64.test.ts20 import Int64 = require("node-int64");
28 const EXPECTED_SMALL_INT64: Int64 = new Int64(42);
29 const EXPECTED_MAX_JS_SAFE_INT64: Int64 = new Int64(Number.MAX_SAFE_INTEGER);
30 const EXPECTED_MIN_JS_SAFE_INT64: Int64 = new Int64(Number.MIN_SAFE_INTEGER);
31 const EXPECTED_MAX_JS_SAFE_PLUS_ONE_INT64: Int64 = new Int64("0020000000000000"); // hex-encoded
32 …const EXPECTED_MIN_JS_SAFE_MINUS_ONE_INT64: Int64 = new Int64("ffe0000000000000"); // hex-encoded …
33 const EXPECTED_MAX_SIGNED_INT64: Int64 = new Int64("7fffffffffffffff"); // hex-encoded
34 …const EXPECTED_MIN_SIGNED_INT64: Int64 = new Int64("8000000000000000"); // hex-encoded 2's complem…
35 const EXPECTED_INT64_LIST: Int64[] = [
Dtest-cases.ts4 import Int64 = require('node-int64');
88 i64_thing: new Int64(1000000)
97 "userMap":{ "5":new Int64(5), "8":new Int64(8) },
102 "i64_thing":new Int64(4)
107 "i64_thing":new Int64(2)
/thrift-3.4.0/lib/ts/test/
Dtest-int64.ts21 var Int64 = require("node-int64"); variable
46 const EXPECTED_SMALL_INT64: typeof Int64 = new Int64(42);
47 const EXPECTED_MAX_JS_SAFE_INT64: typeof Int64 = new Int64(Number.MAX_SAFE_INTEGER);
48 const EXPECTED_MIN_JS_SAFE_INT64: typeof Int64 = new Int64(Number.MIN_SAFE_INTEGER);
49 …const EXPECTED_MAX_JS_SAFE_PLUS_ONE_INT64: typeof Int64 = new Int64("0020000000000000"); // hex-en…
50 …const EXPECTED_MIN_JS_SAFE_MINUS_ONE_INT64: typeof Int64 = new Int64("ffe0000000000000"); // hex-e…
51 const EXPECTED_MAX_SIGNED_INT64: typeof Int64 = new Int64("7fffffffffffffff"); // hex-encoded
52 …const EXPECTED_MIN_SIGNED_INT64: typeof Int64 = new Int64("8000000000000000"); // hex-encoded 2's …
Dphantom-client.ts23 var Int64 = require("node-int64"); variable
26 const int64_2_pow_60: typeof Int64 = new Int64('1000000000000000');
27 const int64_minus_2_pow_60: typeof Int64 = new Int64('f000000000000000');
176 equal(client.testI64(new Int64(0)), 0);
260 equal(client.testTypedef(new Int64(69)), 69);
309 'userMap': { '5': new Int64(5), '8': new Int64(8) },
314 'i64_thing': new Int64(4)
320 'i64_thing': new Int64(2)
Dtest.ts4 var Int64 = require("node-int64"); variable
12 const int64_2_pow_60: typeof Int64 = new Int64('1000000000000000');
13 const int64_minus_2_pow_60: typeof Int64 = new Int64('f000000000000000');
100 assert.equal(client.testI64(new Int64(0)), 0);
102 let int64_2_pow_60_result: typeof Int64 = client.testI64(int64_2_pow_60);
105 let int64_minus_2_pow_60_result: typeof Int64 = client.testI64(int64_minus_2_pow_60);
192 assert.equal(client.testTypedef(new Int64(69)), 69);
259 'userMap': { '5': new Int64(5), '8': new Int64(8) },
264 'i64_thing': new Int64(4)
270 'i64_thing': new Int64(2)
/thrift-3.4.0/lib/delphi/src/
DThrift.Protocol.Compact.pas176 procedure WriteI64( const i64: Int64); override;
182 class function DoubleToInt64Bits( const db : Double) : Int64;
183 class function Int64BitsToDouble( const i64 : Int64) : Double;
193 class function longToZigzag( const n : Int64) : UInt64;
200 class procedure fixedLongToBytes( const n : Int64; var buf : TEightBytesArray); inline;
223 function ReadI64: Int64; override;
246 class function zigzagToLong( const n : UInt64) : Int64;
251 class function bytesToLong( const bytes : TEightBytesArray) : Int64; inline;
509 procedure TCompactProtocolImpl.WriteI64( const i64: Int64);
515 class function TCompactProtocolImpl.DoubleToInt64Bits( const db : Double) : Int64;
[all …]
DThrift.Stream.pas50 function Size : Int64; in Size()
51 function Position : Int64; in Position()
69 function Size : Int64; virtual; in Size()
70 function Position : Int64; virtual; in Position()
86 function Size : Int64; override; in Size()
87 function Position : Int64; override; in Position()
105 function Size : Int64; override; in Size()
106 function Position : Int64; override; in Position()
179 function TThriftStreamAdapterCOM.Size : Int64; in Size()
189 function TThriftStreamAdapterCOM.Position : Int64; in TThriftStreamAdapterCOM.Position()
[all …]
DThrift.Transport.pas71 procedure ResetConsumedMessageSize( const knownSize : Int64 = -1);
72 procedure CheckReadBytesAvailable( const numBytes : Int64);
73 procedure UpdateKnownMessageSize( const size : Int64);
95 procedure UpdateKnownMessageSize( const size : Int64); virtual; abstract;
101 FRemainingMessageSize : Int64;
102 FKnownMessageSize : Int64;
107 property RemainingMessageSize : Int64 read FRemainingMessageSize;
108 property KnownMessageSize : Int64 read FKnownMessageSize;
109 procedure ResetConsumedMessageSize( const newSize : Int64 = -1);
110 procedure UpdateKnownMessageSize(const size : Int64); override;
[all …]
DThrift.Utils.pas128 function InterlockedExchangeAdd64( var Addend : Int64; Value : Int64) : Int64; in InterlockedExchangeAdd64()
410 function InterlockedCompareExchange64( var Target : Int64; Exchange, Comparand : Int64) : Int64; i… in InterlockedCompareExchange64()
420 function InterlockedExchangeAdd64( var Addend : Int64; Value : Int64) : Int64; in InterlockedExchangeAdd64()
421 var old : Int64;
DThrift.Protocol.pas219 procedure WriteI64( const i64: Int64);
243 function ReadI64: Int64; in ReadI64()
298 procedure WriteI64( const i64: Int64); virtual; abstract;
321 function ReadI64: Int64; virtual; abstract; in ReadI64()
420 procedure WriteI64( const i64: Int64); override;
441 function ReadI64: Int64; override; in ReadI64()
484 procedure WriteI64( const i64: Int64); override;
507 function ReadI64: Int64; override; in ReadI64()
563 function ConvertInt64ToDouble( const n: Int64): Double; inline; in ConvertInt64ToDouble()
569 function ConvertDoubleToInt64( const d: Double): Int64; inline; in ConvertDoubleToInt64()
[all …]
/thrift-3.4.0/lib/nodejs/test/
Dint64.test.js20 const Int64 = require("node-int64"); constant
28 const EXPECTED_SMALL_INT64 = new Int64(42);
29 const EXPECTED_MAX_JS_SAFE_INT64 = new Int64(Number.MAX_SAFE_INTEGER);
30 const EXPECTED_MIN_JS_SAFE_INT64 = new Int64(Number.MIN_SAFE_INTEGER);
31 const EXPECTED_MAX_JS_SAFE_PLUS_ONE_INT64 = new Int64("0020000000000000"); // hex-encoded
32 …const EXPECTED_MIN_JS_SAFE_MINUS_ONE_INT64 = new Int64("ffe0000000000000"); // hex-encoded 2's com…
33 const EXPECTED_MAX_SIGNED_INT64 = new Int64("7fffffffffffffff"); // hex-encoded
34 const EXPECTED_MIN_SIGNED_INT64 = new Int64("8000000000000000"); // hex-encoded 2's complement
Dtest_driver.js34 const Int64 = require("node-int64"); constant
57 if (a instanceof Int64) {
58 const e64 = e instanceof Int64 ? e : new Int64(e);
183 if (a instanceof Int64) {
184 const e64 = e instanceof Int64 ? e : new Int64(e);
292 const n = new Int64(map2.buffer);
Dtest-cases.js24 const Int64 = require("node-int64"); constant
93 ["testI64", new Int64(new Buffer([0, 0x20, 0, 0, 0, 0, 0, 1]))], // 2^53+1
96 new Int64(new Buffer([0xff, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]))
/thrift-3.4.0/test/haxe/src/
DTestClient.hx23 import haxe.Int64;
271 … rslt.Expect( map32.exists( 4711) == map64.exists( Int64.make(47,11)), "Int64Map<Int32> Test #2");
272 … rslt.Expect( map32.remove( 4711) == map64.remove( Int64.make(47,11)), "Int64Map<Int32> Test #3");
273 rslt.Expect( map32.get( 4711) == map64.get( Int64.make(47,11)), "Int64Map<Int32> Test #4");
276 map64.set( Int64.make(0,42), 815);
278 map64.set( Int64.neg(Int64.make(0,517)), 23);
280 map64.set( Int64.make(0,0), -123);
286 … rslt.Expect( map32.exists( 4711) == map64.exists( Int64.make(47,11)), "Int64Map<Int32> Test #11");
287 …rslt.Expect( map32.exists( -517) == map64.exists( Int64.neg(Int64.make(0,517))), "Int64Map<Int32> …
288 … rslt.Expect( map32.exists( 42) == map64.exists( Int64.make(0,42)), "Int64Map<Int32> Test #13");
[all …]
/thrift-3.4.0/lib/js/test/
Dtest-int64.js41 const EXPECTED_SMALL_INT64 = new Int64(42);
42 const EXPECTED_MAX_JS_SAFE_INT64 = new Int64(Number.MAX_SAFE_INTEGER);
43 const EXPECTED_MIN_JS_SAFE_INT64 = new Int64(Number.MIN_SAFE_INTEGER);
44 const EXPECTED_MAX_JS_SAFE_PLUS_ONE_INT64 = new Int64("0020000000000000"); // hex-encoded
45 …const EXPECTED_MIN_JS_SAFE_MINUS_ONE_INT64 = new Int64("ffe0000000000000"); // hex-encoded 2's com…
46 const EXPECTED_MAX_SIGNED_INT64 = new Int64("7fffffffffffffff"); // hex-encoded
47 const EXPECTED_MIN_SIGNED_INT64 = new Int64("8000000000000000"); // hex-encoded 2's complement
/thrift-3.4.0/lib/haxe/src/org/apache/thrift/transport/
DTEndpointTransport.hx22 import haxe.Int64;
27 private var MaxMessageSize(get, never) : Int64;
28 private var KnownMessageSize(default, null) : Int64 ;
29 private var RemainingMessageSize(default, null) : Int64 ;
37 private function get_MaxMessageSize() : Int64 {
51 private function ResetConsumedMessageSize(?newSize : Int64) : Void
71 public override function UpdateKnownMessageSize(size : Int64) : Void
79 public override function CheckReadBytesAvailable(numBytes : Int64) : Void
86 private function CountConsumedMessageBytes(numBytes : Int64) : Void
/thrift-3.4.0/lib/swift/Tests/ThriftTests/
DTCompactProtocolTests.swift60 let writeVal: Int64 = 234234981374134 in testInt64WriteRead()
64 let readVal: Int64 = (try? proto.read()) ?? 0 in testInt64WriteRead()
164 let zero: Int64 = 0 in testInt64ZigZag()
165 let one: Int64 = 1 in testInt64ZigZag()
166 let nOne: Int64 = -1 in testInt64ZigZag()
167 let two: Int64 = 2 in testInt64ZigZag()
168 let nTwo: Int64 = -2 in testInt64ZigZag()
169 let max = Int64.max in testInt64ZigZag()
170 let min = Int64.min in testInt64ZigZag()
DTBinaryProtocolTests.swift62 let writeVal: Int64 = 234234981374134 in testInt64WriteRead()
66 let readVal: Int64 = (try? proto.read()) ?? 0 in testInt64WriteRead()
134 let val: Int64 = 31415926 in testUnsafeBitcastUpdate()
137 let i64 = Int64(bitPattern: value.bitPattern) in testUnsafeBitcastUpdate()
138 let ubc = unsafeBitCast(value, to: Int64.self) in testUnsafeBitcastUpdate()
DTFramedTransportTests.swift74 let writeVal: Int64 = 234234981374134 in testInt64WriteRead()
78 let readVal: Int64 = (try? proto.read()) ?? 0 in testInt64WriteRead()
146 let val: Int64 = 31415926 in testUnsafeBitcastUpdate()
149 let i64 = Int64(bitPattern: value.bitPattern) in testUnsafeBitcastUpdate()
150 let ubc = unsafeBitCast(value, to: Int64.self) in testUnsafeBitcastUpdate()
/thrift-3.4.0/lib/swift/Sources/
DTBinaryProtocol.swift227 public func read() throws -> Int64 { in read()
232 var ret = Int64(buff[0] & 0xff) << 56 in read()
233 ret |= Int64(buff[1] & 0xff) << 48 in read()
234 ret |= Int64(buff[2] & 0xff) << 40 in read()
235 ret |= Int64(buff[3] & 0xff) << 32 in read()
236 ret |= Int64(buff[4] & 0xff) << 24 in read()
237 ret |= Int64(buff[5] & 0xff) << 16 in read()
238 ret |= Int64(buff[6] & 0xff) << 8 in read()
239 ret |= Int64(buff[7] & 0xff) in read()
245 let val = try read() as Int64 in read()
[all …]
/thrift-3.4.0/lib/delphi/test/
DTestServer.pas67 function testI64(const thing: Int64): Int64; in testI64()
78 function testTypedef(const thing: Int64): Int64; in testTypedef()
80 …function testInsanity(const argument: IInsanity): IThriftDictionary<Int64, IThriftDictionary<TNumb… in testInsanity()
81 …Int; arg1: Integer; const arg2: Int64; const arg3: IThriftDictionary<SmallInt, string>; arg4: TNum… in testMulti()
186 function TTestServer.TTestHandlerImpl.testI64( const thing: Int64): Int64; in TTestServer.TTestHandlerImpl.testI64()
193 const argument: IInsanity): IThriftDictionary<Int64, IThriftDictionary<TNumberz, IInsanity>>; in TTestServer.TTestHandlerImpl.testInsanity()
198 insane : IThriftDictionary<Int64, IThriftDictionary<TNumberz, IInsanity>>;
227 insane := TThriftDictionaryImpl<Int64, IThriftDictionary<TNumberz, IInsanity>>.Create;
278 const arg2: Int64; const arg3: IThriftDictionary<SmallInt, string>;
279 arg4: TNumberz; const arg5: Int64): IXtruct;
[all …]
/thrift-3.4.0/lib/nodejs/lib/thrift/
Dint64_util.js20 var Int64 = require('node-int64'); variable
65 return new Int64(+text);
89 return new Int64(high, low);

1234