gpt4 book ai didi

c# - 位图以及如何填充相关值

转载 作者:行者123 更新时间:2023-11-30 18:40:01 27 4
gpt4 key购买 nike

我正在尝试使用 ISO8583Net dll 实现解决方案,但无法确定如何填充各种位图字段值。根据 ISO8583 文档,我可以看到它需要作为字段一的一部分包含在消息(应用程序数据)中,但我找不到它作为代码中可用字段列表的一部分。

我看对地方了吗?是否有任何 C-sharp 代码片段可以举例说明这是如何实现的?

最佳答案

到目前为止你尝试了什么?

我找不到任何 C# 示例,但我相信您会从它的 Java 版本中学到您需要的东西,这里有一个指南:http://j8583.sourceforge.net/guide.html

These are the two main classes you need to use to work with ISO8583 messages. An IsoMessage can be encoded into a byte array or a ByteBuffer to be written to an OutputStream, or it can directly write itself to an OutputStream. You can set and get the values for each field in an IsoMessage, and it will adjust itself to use a secondary bitmap if necessary.

据我所知,您在 IsoMessage 上设置字段,它负责生成位图。查看 .NET implementation of IsoMessage 中的摘要证实这一点:

/// <summary>
/// This class represents an ISO8583 Message. It contains up to 127 fields
/// numbered from 2 to 128; field 1 is reserved for the secondary bitmap
/// and the bitmaps are calculated automatically by the message when it is
/// going to be written to a stream.

关于c# - 位图以及如何填充相关值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8970292/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com