Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/callstackincubator/polygen
/ functions
Functions
615 in github.com/callstackincubator/polygen
⨍
Functions
615
◇
Types & classes
231
↓ 150 callers
Method
getHash
function to return a resulting hash from selected ALGORITHM and passed data
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:3093
↓ 40 callers
Method
getHMAC
function to return a resulting HMAC from selected ALGORITHM and passed key-data pair
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:3143
↓ 40 callers
Method
rr64
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:103
↓ 34 callers
Method
toString
()
packages/codegen/src/source-builder/common.ts:8
↓ 33 callers
Method
ctx_transform
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:479
↓ 32 callers
Method
length
()
packages/polygen/src/api/Table.ts:68
↓ 25 callers
Method
end
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:2937
↓ 22 callers
Method
begin
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:2934
↓ 20 callers
Method
fromHex
Helper function to convert hex string to bytes and return them in a vector
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:186
↓ 20 callers
Method
rr32
helper functions to rotate right
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:100
↓ 20 callers
Function
string
()
packages/codegen/src/source-builder/builder.types.ts:9
↓ 18 callers
Method
writeLine
* Write a line to the source code. * * @param line Line to write
packages/codegen/src/source-builder/source-writer.ts:43
↓ 13 callers
Method
readUnsignedLEB128
* Reads an unsigned LEB128 (Little-Endian Base 128) encoded integer from the current data stream. * * The method successively reads bytes and as
packages/binary-utils/src/binary-reader.ts:209
↓ 12 callers
Method
F
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:625
↓ 12 callers
Method
G
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:626
↓ 12 callers
Method
rl32
helper functions to rotate left
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:92
↓ 12 callers
Method
write
* Write a string to the source code. * * @param str String to write
packages/codegen/src/source-builder/source-writer.ts:27
↓ 10 callers
Method
SIGMA0
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:1954
↓ 10 callers
Method
SIGMA1
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:1955
↓ 10 callers
Method
spacing
* Adds vertical spacing to the source code. * * @param lines
packages/codegen/src/source-builder/builder.block.ts:37
↓ 8 callers
Function
readVector
( reader: BinaryReader, readFunction: () => TResult )
packages/wasm-parser/src/reader/utils.ts:58
↓ 8 callers
Method
size
packages/polygen/cpp/ReactNativePolygen/WebAssembly/Memory.h:45
↓ 7 callers
Method
create
* Creates a new W2CGenerator instance for the specified project and options. * * @param project The project configuration to generate code for.
packages/codegen/src/codegen.ts:146
↓ 7 callers
Method
get
[MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get)
packages/polygen/types/WebAssembly-global.d.ts:86
↓ 6 callers
Method
SIGMA2
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:1956
↓ 6 callers
Method
SIGMA3
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:1957
↓ 6 callers
Method
data
packages/polygen/cpp/ReactNativePolygen/WebAssembly/Memory.h:49
↓ 6 callers
Method
pathTo
* Get full path to a file in the project * * @param components Path components
packages/polygen-project/src/project.paths.ts:23
↓ 5 callers
Method
action
( func: ( project: Project, options: TOptions & GlobalOptions, ...args: string[] ) =
packages/polygen-cli/src/helpers/with-project-options.ts:24
↓ 5 callers
Function
arrayBuffersEqual
(a: ArrayBuffer, b: ArrayBuffer)
packages/binary-utils/src/helpers.ts:41
↓ 5 callers
Method
readUint8
* Reads an unsigned 8-bit integer from the binary data. * * @return The unsigned 8-bit integer read from the binary
packages/binary-utils/src/binary-reader.ts:123
↓ 5 callers
Function
wasm_rt_trap
packages/polygen/cpp/wasm-rt/wasm-rt-impl.c:87
↓ 5 callers
Function
wasm_rt_trap
packages/codegen/assets/wasm-rt/wasm-rt-impl.c:82
↓ 5 callers
Method
writeTo
* Writes the provided text to the specified file path, creating any necessary directories. * * @param to - The relative or absolute path where t
packages/codegen/src/helpers/output-generator.ts:152
↓ 4 callers
Method
R1
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:776
↓ 4 callers
Method
R2
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:779
↓ 4 callers
Method
R3
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:782
↓ 4 callers
Method
build
(writer: SourceWriter)
packages/codegen/src/source-builder/common.ts:4
↓ 4 callers
Function
countOf
(type: GeneratedEntityKind)
packages/polygen-cli/src/actions/codegen.ts:29
↓ 4 callers
Method
ctx_update
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:526
↓ 4 callers
Method
outputPathTo
* Builds path to specified file, prefixing it with output directory, if any. * * @param names Path components
packages/codegen/src/helpers/output-generator.ts:137
↓ 4 callers
Method
pathToOutput
* Get full path to a file in the output directory * * @param components Path components
packages/polygen-project/src/project.paths.ts:41
↓ 4 callers
Method
readBytes
* Reads a sequence of bytes from the binary data. * * @param n - The number of bytes to read from the binary data. * @return The sequence of
packages/binary-utils/src/binary-reader.ts:195
↓ 4 callers
Function
readLookup
( reader: BinaryReader, map: Map<number, TValue>, debugName: string )
packages/wasm-parser/src/reader/utils.ts:32
↓ 4 callers
Function
readString
(reader: BinaryReader)
packages/wasm-parser/src/reader/utils.ts:19
↓ 4 callers
Method
set
[MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set)
packages/polygen/types/WebAssembly-global.d.ts:90
↓ 4 callers
Function
toJSINumber
(expr: string, type: ValueType)
packages/codegen/src/templates/common.ts:46
↓ 4 callers
Method
writeAllTo
* Writes all content from the given map to respective destinations. * * @param contentMap A record where keys are destination paths and values a
packages/codegen/src/helpers/output-generator.ts:168
↓ 3 callers
Method
A
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:1786
↓ 3 callers
Function
appendEscaped
(char: string)
packages/codegen/src/wasm2c/mangle.ts:87
↓ 3 callers
Method
copyBytes
* Copies the bytes from the specified buffer into the current buffer starting at the current offset. * * @param buffer - The source buffer conta
packages/binary-utils/src/binary-writer.ts:212
↓ 3 callers
Method
copyNativeHandle
(holder: UnsafeObject, from: UnsafeObject)
packages/polygen/src/NativePolygen.ts:133
↓ 3 callers
Method
defineFunction
(builder: FunctionBuilder)
packages/codegen/src/source-builder/builder.block.ts:104
↓ 3 callers
Method
defineVariable
(builder: VariableBuilder)
packages/codegen/src/source-builder/builder.block.ts:111
↓ 3 callers
Method
forPath
* Generates an OutputGenerator with an updated output directory by appending the given nested directory path * to the base output directory. *
packages/codegen/src/helpers/output-generator.ts:111
↓ 3 callers
Method
getName
packages/polygen/cpp/ReactNativePolygen/w2c.h:41
↓ 3 callers
Method
getTime
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:4507
↓ 3 callers
Method
insertRaw
(source: string)
packages/codegen/src/source-builder/builder.block.ts:119
↓ 3 callers
Method
namespace
(name: string, action: BuilderAction<SourceBlockBuilder>)
packages/codegen/src/source-builder/builder.block.ts:95
↓ 3 callers
Method
readUint32
* Reads an unsigned 32-bit integer from the binary data. * * @return The unsigned 32-bit integer read from the binary
packages/binary-utils/src/binary-reader.ts:150
↓ 3 callers
Method
resolvePolygenModule
* Returns specified module with resolved path. * * @param project * @param module
packages/polygen-project/src/project.modules.ts:91
↓ 3 callers
Function
resolveProjectDependency
( project: Project, packageName: string )
packages/polygen-project/src/deps.ts:51
↓ 3 callers
Method
startTimer
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:4499
↓ 3 callers
Method
stopTimer
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:4503
↓ 3 callers
Method
withInitializer
( expressionBuilder: ExpressionBuilder | ExpressionAction, multiLine: boolean = false )
packages/codegen/src/source-builder/builder.decls.ts:105
↓ 3 callers
Method
withReturnType
(type: TypeBuilder | TypeAction)
packages/codegen/src/source-builder/builder.decls.ts:32
↓ 3 callers
Method
withType
(type: TypeBuilder | TypeAction)
packages/codegen/src/source-builder/builder.decls.ts:96
↓ 3 callers
Method
writeUint8
* Writes an unsigned 8-bit integer to the buffer at the current offset. * * @param n The unsigned 8-bit integer value to write. * @return Ret
packages/binary-utils/src/binary-writer.ts:135
↓ 2 callers
Method
H
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:627
↓ 2 callers
Function
appendVerbatim
(char: string)
packages/codegen/src/wasm2c/mangle.ts:93
↓ 2 callers
Method
asSharedPtr
()
packages/codegen/src/source-builder/builder.types.ts:57
↓ 2 callers
Method
assertSafeToWrite
(fullPath: string)
packages/codegen/src/helpers/output-generator.ts:259
↓ 2 callers
Function
buildGeneratedSymbol
( module: W2CModuleBase, entity: ModuleImport | ModuleExport )
packages/codegen/src/codegen/utils.ts:49
↓ 2 callers
Method
bytesToHexString
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:197
↓ 2 callers
Function
cleanGeneratedFiles
(project: Project)
packages/polygen-cli/src/actions/clean.ts:7
↓ 2 callers
Function
compile
(bufferOrView: BufferSource)
packages/polygen/src/api/WebAssembly.ts:43
↓ 2 callers
Method
copyAsset
* Copies an asset from the specified asset path to a target destination. * * @param assetPath The relative path of the asset to be copied from t
packages/codegen/src/helpers/output-generator.ts:182
↓ 2 callers
Method
ctx_final
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:545
↓ 2 callers
Method
ctx_init
MD5
packages/polygen/cpp/ReactNativePolygen/utils/hashpp.h:473
↓ 2 callers
Function
dataViewsAreEqual
(a: DataView, b: DataView)
packages/binary-utils/src/helpers.ts:52
↓ 2 callers
Method
exports
(mod: Module)
packages/polygen/src/api/Module.ts:38
↓ 2 callers
Method
findClosest
* Creates a project from nearest package.json. * * @param from Directory to start looking from, defaults to current directory. * @returns Pro
packages/polygen-project/src/project.ts:64
↓ 2 callers
Function
findConfigFile
(dirPath: string)
packages/polygen-config/src/find-config.ts:82
↓ 2 callers
Function
findProjectRoot
( from: string = process.cwd() )
packages/polygen-config/src/find-config.ts:38
↓ 2 callers
Function
fromJSINumber
( expr: string, type: ValueType, w2cType: string )
packages/codegen/src/templates/common.ts:51
↓ 2 callers
Method
fromPath
* Creates a project from specified project root path. * * @param projectRoot Path to the project * @returns Promise with Project instance
packages/polygen-project/src/project.ts:90
↓ 2 callers
Method
getExternalModules
* External modules
packages/polygen-project/src/project.modules.ts:65
↓ 2 callers
Method
getImportedModule
* Gets an imported module by name. * * If the module is not found, an error is thrown. * * @param name Name of the imported module
packages/codegen/src/codegen/context.ts:65
↓ 2 callers
Function
getModuleNameFor
( inputFile: string, options?: Wasm2cGenerateOptions )
packages/codegen/src/wasm2c/wasm2c.ts:85
↓ 2 callers
Function
getOutputFilesFor
( inputFile: string, outputDir: string, options?: Wasm2cGenerateOptions )
packages/codegen/src/wasm2c/wasm2c.ts:100
↓ 2 callers
Method
globalPathToLocal
* Convert a global path to a local path * * @param targetPath Global path * @param directoryInProject Directory in the project to consider as
packages/polygen-project/src/project.paths.ts:51
↓ 2 callers
Method
grow
[MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow)
packages/polygen/types/WebAssembly-global.d.ts:88
↓ 2 callers
Method
include
* Adds an include preprocesor directive. * * @param path Path to include * @param local Whenever to use local include or a system include
packages/codegen/src/source-builder/builder.file.ts:26
↓ 2 callers
Method
includeLocal
* Adds a local include preprocesor directive. * * @param path Path to include
packages/codegen/src/source-builder/builder.file.ts:40
↓ 2 callers
Method
includeSystem
* Adds a system include preprocesor directive. * * @param path Path to include
packages/codegen/src/source-builder/builder.file.ts:49
↓ 2 callers
Method
indentString
(str: string)
packages/codegen/src/source-builder/source-writer.ts:122
↓ 2 callers
Method
loadModule
( holder: OpaqueModuleNativeHandle, moduleData: UnsafeArrayBuffer )
packages/polygen/src/NativePolygen.ts:136
↓ 2 callers
Function
localModule
( path: string, options: PolygenModuleCommonConfig = {} )
packages/polygen-config/src/helpers.ts:16
↓ 2 callers
Function
makeImportFunc
( func: GeneratedSymbol<GeneratedModuleFunction>, withBody: boolean )
packages/codegen/src/templates/library/imports-bridge.ts:129
↓ 2 callers
Function
makeImportGlobal
( global: ResolvedModuleImport<ModuleGlobal>, withBody: boolean )
packages/codegen/src/templates/library/imports-bridge.ts:162
next →
1–100 of 615, ranked by callers