-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose autocannonize func for keyexpr wrapper #101
Open
Charles-Schleich
wants to merge
4
commits into
eclipse-zenoh:main
Choose a base branch
from
ZettaScaleLabs:add/autocanonize
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+67
−6
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {string} key_expr_str | ||
*/ | ||
export function new_key_expr(key_expr_str: string): void; | ||
/** | ||
* @param {string} ke1 | ||
* @param {string} ke2 | ||
* @returns {string} | ||
*/ | ||
export function join(ke1: string, ke2: string): string; | ||
/** | ||
* @param {string} ke1 | ||
* @param {string} ke2 | ||
* @returns {string} | ||
*/ | ||
export function concat(ke1: string, ke2: string): string; | ||
/** | ||
* @param {string} ke1 | ||
* @param {string} ke2 | ||
* @returns {boolean} | ||
*/ | ||
export function includes(ke1: string, ke2: string): boolean; | ||
/** | ||
* @param {string} ke1 | ||
* @param {string} ke2 | ||
* @returns {boolean} | ||
*/ | ||
export function intersects(ke1: string, ke2: string): boolean; | ||
/** | ||
* @param {string} ke | ||
* @returns {string} | ||
*/ | ||
export function autocanonize(ke: string): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
import * as wasm from "./zenoh_keyexpr_wrapper_bg.wasm"; | ||
export * from "./zenoh_keyexpr_wrapper_bg.js"; | ||
import { __wbg_set_wasm } from "./zenoh_keyexpr_wrapper_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
__wbg_set_wasm(wasm); | ||
export * from "./zenoh_keyexpr_wrapper_bg.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export const new_key_expr: (a: number, b: number, c: number) => void; | ||
export const join: (a: number, b: number, c: number, d: number, e: number) => void; | ||
export const concat: (a: number, b: number, c: number, d: number, e: number) => void; | ||
export const includes: (a: number, b: number, c: number, d: number, e: number) => void; | ||
export const intersects: (a: number, b: number, c: number, d: number, e: number) => void; | ||
export const __wbindgen_add_to_stack_pointer: (a: number) => number; | ||
export const __wbindgen_malloc: (a: number, b: number) => number; | ||
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; | ||
export const __wbindgen_free: (a: number, b: number, c: number) => void; | ||
export function new_key_expr(a: number, b: number, c: number): void; | ||
export function join(a: number, b: number, c: number, d: number, e: number): void; | ||
export function concat(a: number, b: number, c: number, d: number, e: number): void; | ||
export function includes(a: number, b: number, c: number, d: number, e: number): void; | ||
export function intersects(a: number, b: number, c: number, d: number, e: number): void; | ||
export function autocanonize(a: number, b: number, c: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
export function __wbindgen_malloc(a: number, b: number): number; | ||
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; | ||
export function __wbindgen_free(a: number, b: number, c: number): void; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is incorrect. Also this should be free function, it doesn't use "this".
Probably this require to make "call_wasm" free function too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or make this method static, ts allows this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call_wasm
is just a function that is part of the keyexpr class, to abstract away return types and function calls.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just wondering why
autocanonize
is a method of already created KeyExpr? This function should accept string and create key new expression. I.e. this is a constructor. It can be implemented like this: