Streams are broken in electron

Đang mở
#433 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@vmoroz đang làm issue này rồi.

Từ ngày 14/3/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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?

Ngôn ngữ chính
C#
Star
783
Fork
80
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/node-api-dotnet

Tất cả issue của microsoft/node-api-dotnet

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.