Passing String containing null character in between.

Aperta
#61 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp, node.js
Ambito
api, backend

Direzione di ricerca

Start by reading the Node.js C++ addon examples and investigating how binary data is passed from Node.js into a native function. Reproduce the reported case with an image containing null bytes; done means the complete byte array reaches the C++ function without truncation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I have a byte array of an image in nodejs and i want to pass it in a C function for further processing .
If i am passing it as string then the array is not passed correctly. Can you tell me how can i pass it?

Lingua principale
C++
Stelle
2.6k
Fork
602
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nodejs/node-addon-examples

Tutte le issue di nodejs/node-addon-examples

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.