Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何支持二维的数组呢 ,就是吧这样的二维的数据 怎么放入 #29

Closed
jasonccs opened this issue Oct 27, 2023 · 2 comments

Comments

@jasonccs
Copy link

jasonccs commented Oct 27, 2023

 如何支持二维的数组呢  ,就是吧这样的二维的数据 怎么放入

@magicfield(order = 15, size = 4)
private List<List> param = List.of(
List.of(new UserInfo(), new UserInfo()),
List.of(new UserInfo(), new UserInfo()),
List.of(new UserInfo(), new UserInfo()),
List.of(new UserInfo(), new UserInfo())
);

@MagicClass(byteOrder = ByteOrder.LITTLE_ENDIAN)
@DaTa
public static class UserInfo {

    @MagicField(order = 7)
    private short name;

    @MagicField(order = 9)
    private byte age;

}

 如何支持二维的数组呢  ,就是吧这样的二维的数据 怎么放入

 [
  [{"name":"t","age":1},{"name":"t","age":1}],
  [{"name":"t","age":1},{"name":"t","age":1}],
  [{"name":"t","age":1},{"name":"t","age":1}]

]

@jasonccs jasonccs changed the title 如何支持二维的数组呢 ,就是吧这杨树的数据 怎么放入 如何支持二维的数组呢 ,就是吧这样的二维的数据 怎么放入 Oct 27, 2023
@MisterChangRay
Copy link
Owner

框架暂不支持二维数组的

@jasonccs
Copy link
Author

jasonccs commented Oct 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants