Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/djinni
/ functions
Functions
2,673 in github.com/Snapchat/djinni
⨍
Functions
2,673
◇
Types & classes
1,133
↓ 483 callers
Method
get
()
test-suite/generated-src/ts/test.ts:569
↓ 461 callers
Function
fromCpp
support-lib/objc/Future_objc.hpp:26
↓ 330 callers
Function
get
support-lib/jni/djinni_support.hpp:128
↓ 136 callers
Function
release
support-lib/jni/djinni_support.hpp:133
↓ 122 callers
Function
jniExceptionCheck
support-lib/jni/djinni_support.cpp:232
↓ 97 callers
Method
set
support-lib/jni/Future_jni.hpp:83
↓ 92 callers
Function
jniGetMethodID
support-lib/jni/djinni_support.cpp:331
↓ 82 callers
Function
assertEq
(a: any, b: any)
test-suite/handwritten-src/ts/testutils.ts:121
↓ 75 callers
Function
assertEq
(a, b)
test-suite/handwritten-src/js/testutils.js:113
↓ 73 callers
Function
jniFindClass
support-lib/jni/djinni_support.cpp:300
↓ 68 callers
Function
jniGetFieldID
support-lib/jni/djinni_support.cpp:344
↓ 52 callers
Function
measure
(name: string, func:(()=>void), times = 10)
perftest/ts/perftest.ts:13
↓ 51 callers
Method
size
support-lib/wasm/djinni_wasm.hpp:611
↓ 50 callers
Function
invoke
support-lib/cpp/tl_expected.hpp:259
↓ 49 callers
Method
has_value
support-lib/cpp/tl_expected.hpp:825
↓ 46 callers
Function
jniGetThreadEnv
support-lib/jni/djinni_support.cpp:168
↓ 41 callers
Method
_fromJava
* Given a Java object, find or create a C++ version. The cases here are: * 1. Null * 2. The provided Java object is actually a CppProxy (Jav
support-lib/jni/djinni_support.hpp:400
↓ 41 callers
Method
_toJava
* Given a C++ object, find or create a Java version. The cases here are: * 1. Null * 2. The provided C++ object is actually a JavaProxy (C++
support-lib/jni/djinni_support.hpp:376
↓ 38 callers
Function
checkForNull
support-lib/wasm/djinni_wasm.cpp:73
↓ 30 callers
Method
register
(Object o, long nativeRef)
support-lib/java/com/snapchat/djinni/NativeObjectManager.java:108
↓ 23 callers
Method
then
support-lib/cpp/Future.hpp:307
↓ 21 callers
Function
assertTrue
(a: boolean)
test-suite/handwritten-src/ts/testutils.ts:106
↓ 21 callers
Function
assertTrue
(a)
test-suite/handwritten-src/js/testutils.js:98
↓ 20 callers
Function
expected_map_impl
support-lib/cpp/tl_expected.hpp:2003
↓ 20 callers
Method
writeByte
(byte val)
test-suite/handwritten-src/java/android/os/Parcel.java:122
↓ 17 callers
Method
setValue
`setValue()` or `setException()` can only be called once. After which the shared state is set to null and further calls to `setValue()` or `setExcepti
support-lib/cpp/Future.hpp:165
↓ 15 callers
Function
assertArrayEq
(a: any, b: any)
test-suite/handwritten-src/ts/testutils.ts:127
↓ 15 callers
Function
has_value
support-lib/cpp/tl_expected.hpp:1894
↓ 14 callers
Method
equals
(@CheckForNull Object obj)
test-suite/generated-src/java/com/dropbox/djinni/test/Vec2.java:31
↓ 14 callers
Method
getFuture
support-lib/cpp/Future.hpp:397
↓ 13 callers
Function
assertArrayEq
(a, b)
test-suite/handwritten-src/js/testutils.js:119
↓ 13 callers
Method
initialized
test-suite/handwritten-src/cpp/optional.hpp:266
↓ 12 callers
Function
and_then_impl
support-lib/cpp/tl_expected.hpp:1955
↓ 12 callers
Method
create
()
test-suite/generated-src/ts/test.ts:99
↓ 12 callers
Method
hashCode
()
test-suite/generated-src/java/com/dropbox/djinni/test/Vec2.java:41
↓ 12 callers
Method
readByte
()
test-suite/handwritten-src/java/android/os/Parcel.java:130
↓ 12 callers
Function
swap
support-lib/cpp/tl_expected.hpp:2325
↓ 11 callers
Method
compareTo
(@Nonnull DateRecord other)
test-suite/generated-src/java/com/dropbox/djinni/test/DateRecord.java:77
↓ 11 callers
Function
jniGetStaticMethodID
support-lib/jni/djinni_support.cpp:318
↓ 10 callers
Function
map_error_impl
support-lib/cpp/tl_expected.hpp:2114
↓ 9 callers
Method
allocateWasmBuffer
(size: number)
support-lib/ts/DjinniModule.ts:18
↓ 9 callers
Method
argString
(s: string)
perftest/generated-src/ts/perftest.ts:37
↓ 9 callers
Method
setValue
(T val)
support-lib/java/com/snapchat/djinni/Promise.java:38
↓ 9 callers
Function
to_string
test-suite/generated-src/cpp/color.hpp:25
↓ 8 callers
Method
checkTokenType
(t: UserToken, type: string)
test-suite/generated-src/ts/test.ts:445
↓ 8 callers
Method
getFuture
()
support-lib/java/com/snapchat/djinni/Promise.java:32
↓ 8 callers
Function
percentileFromSortedArray
(samples: number[], percentile: number)
perftest/ts/perftest.ts:9
↓ 8 callers
Method
readInt
()
test-suite/handwritten-src/java/android/os/Parcel.java:62
↓ 8 callers
Method
setException
support-lib/cpp/Future.hpp:176
↓ 8 callers
Method
writeInt
(int val)
test-suite/handwritten-src/java/android/os/Parcel.java:54
↓ 7 callers
Method
enumToString
(v: test.Color)
test-suite/handwritten-src/ts/EnumTest.ts:11
↓ 7 callers
Method
enumToString
(v, e)
test-suite/handwritten-src/js/EnumTest.js:6
↓ 7 callers
Method
name
support-lib/jni/Marshal.hpp:561
↓ 7 callers
Method
ordinal
support-lib/jni/djinni_support.cpp:363
↓ 7 callers
Function
println
(o: string)
test-suite/handwritten-src/ts/testutils.ts:6
↓ 7 callers
Function
println
(o)
test-suite/handwritten-src/js/testutils.js:4
↓ 7 callers
Function
seconds
(x: number)
test-suite/handwritten-src/ts/DurationTest.ts:7
↓ 6 callers
Method
construct_error
support-lib/cpp/tl_expected.hpp:680
↓ 6 callers
Method
createCppToken
()
test-suite/generated-src/ts/test.ts:442
↓ 6 callers
Method
fromError
(Error error)
support-lib/java/com/snapchat/djinni/Outcome.java:75
↓ 6 callers
Method
fromResult
(Result value)
support-lib/java/com/snapchat/djinni/Outcome.java:65
↓ 6 callers
Function
getWasmMemoryBuffer
support-lib/wasm/djinni_wasm.cpp:89
↓ 6 callers
Method
handleResult
(Future<U> res)
support-lib/java/com/snapchat/djinni/Future.java:62
↓ 6 callers
Function
nanos
(x: number)
test-suite/handwritten-src/ts/DurationTest.ts:4
↓ 6 callers
Method
returnStr
()
test-suite/generated-src/ts/test.ts:545
↓ 6 callers
Function
sort
(order: example.SortOrder)
examples/ts/demo.ts:18
↓ 6 callers
Method
toString
()
test-suite/handwritten-src/java/com/dropbox/djinni/test/MockRecordTest.java:6
↓ 6 callers
Method
toString
()
perftest/generated-src/java/com/snapchat/djinni/benchmark/RecordSixInt.java:63
↓ 6 callers
Method
tokenId
(t: UserToken | undefined)
test-suite/generated-src/ts/test.ts:441
↓ 5 callers
Method
clear
test-suite/handwritten-src/cpp/optional.hpp:279
↓ 5 callers
Method
createJsObject
support-lib/wasm/djinni_wasm.cpp:99
↓ 5 callers
Function
fromCpp
support-lib/objc/DJIMarshal+Private.h:346
↓ 5 callers
Method
isReady
returns true if the result can be `get()` without blocking
support-lib/cpp/Future.hpp:267
↓ 5 callers
Method
loadLibrary
(String abspath)
support-lib/java/com/dropbox/djinni/NativeLibLoader.java:178
↓ 5 callers
Function
make_unexpected
support-lib/cpp/expected.hpp:11
↓ 5 callers
Function
micros
(x: number)
test-suite/handwritten-src/ts/DurationTest.ts:5
↓ 5 callers
Function
millis
(x: number)
test-suite/handwritten-src/ts/DurationTest.ts:6
↓ 5 callers
Function
minutes
(x: number)
test-suite/handwritten-src/ts/DurationTest.ts:8
↓ 5 callers
Function
seconds
(x)
test-suite/handwritten-src/js/DurationTest.js:4
↓ 5 callers
Method
sort
For the iOS / Android demo
examples/generated-src/ts/example.ts:17
↓ 5 callers
Method
swap
20.5.4.4 Swap
test-suite/handwritten-src/cpp/optional.hpp:389
↓ 5 callers
Method
throwAnException
()
test-suite/generated-src/ts/test.ts:564
↓ 5 callers
Function
units
(n: number, u: string)
test-suite/handwritten-src/ts/testutils.ts:24
↓ 5 callers
Function
units
(n, u)
test-suite/handwritten-src/js/testutils.js:22
↓ 5 callers
Method
valptr
support-lib/cpp/tl_expected.hpp:1232
↓ 5 callers
Method
what
support-lib/cpp/tl_expected.hpp:1198
↓ 4 callers
Method
addOneIfPresent
* If the input is empty, returns back an empty future. * If the input is non-empty, returns back the value plus one.
test-suite/generated-src/ts/test.ts:458
↓ 4 callers
Function
assertUndefined
(a: any)
test-suite/handwritten-src/ts/testutils.ts:133
↓ 4 callers
Function
assertUndefined
(a)
test-suite/handwritten-src/js/testutils.js:125
↓ 4 callers
Method
baseline
()
perftest/generated-src/ts/perftest.ts:25
↓ 4 callers
Method
box
(count: bigint)
test-suite/generated-src/ts/test.ts:72
↓ 4 callers
Method
buf
support-lib/cpp/DataRef.hpp:90
↓ 4 callers
Method
callThrowingAndCatch
(cb: ThrowingInterface)
test-suite/generated-src/ts/test.ts:566
↓ 4 callers
Method
checkCppToken
(t: UserToken)
test-suite/generated-src/ts/test.ts:443
↓ 4 callers
Method
checkTokenType
(@CheckForNull UserToken t, @Nonnull String type)
test-suite/generated-src/java/com/dropbox/djinni/test/TestHelpers.java:76
↓ 4 callers
Method
construct
support-lib/cpp/tl_expected.hpp:670
↓ 4 callers
Method
dataFromStr
()
test-suite/generated-src/ts/test.ts:94
↓ 4 callers
Method
dataFromVec
()
test-suite/generated-src/ts/test.ts:93
↓ 4 callers
Method
flush
()
test-suite/handwritten-src/java/android/os/Parcel.java:27
↓ 4 callers
Method
futureRoundtrip
(f: Promise<number>)
test-suite/generated-src/ts/test.ts:407
next →
1–100 of 2,673, ranked by callers