Streams are broken in electron

オープン
#433 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@vmoroz がすでに取り組んでいます。

2025年3月14日 から。

評価

この issue はまだ評価されていません。

説明

I have the following trivial method:

public static Stream TestStream()
{
    return new MemoryStream(System.Text.Encoding.UTF8.GetBytes("hello"));
}

I'm noticing a different behavior when I use it in Electron compared to Node.js - even though there's no error, the Electron version appears empty:

console.log(MyClass.testStream().read()); // null in electron, Buffer in Node.js

Potentially related to https://github.com/microsoft/node-api-dotnet/issues/383, although I'm unsure if this implementation somehow uses external buffers?

主要言語
C#
スター
783
フォーク
80
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/node-api-dotnet のほかの issue

microsoft/node-api-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。