Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Non-writeable MemoryStream shows up as Duplex rather than Readable

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

@jasongin đ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ả

marshalling

Per the the Stream docs, "A .NET Stream instance is marshalled to and from Node.js Duplex, Readable, or Writable, depending whether the stream supports reading and/or writing", however the following method:

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

...seems to return a Duplex, even though I'd expect a Readable.

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

Chuẩn bị môi trường

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.