(@NotNull IByteBuffer bb)
| 779 | } |
| 780 | |
| 781 | @Override |
| 782 | public void decode(@NotNull IByteBuffer bb) { |
| 783 | for (int count = bb.ReadInt(); count > 0; --count) { |
| 784 | var table = new Table(); |
| 785 | table.decode(bb); |
| 786 | if (tables.put(table.name, table) != null) |
| 787 | throw new IllegalStateException("duplicate table=" + table.name); |
| 788 | } |
| 789 | for (int count = bb.ReadInt(); count > 0; --count) { |
| 790 | var bean = new Bean(); |
| 791 | bean.decode(bb); |
| 792 | if (beans.put(bean.name, bean) != null) |
| 793 | throw new IllegalStateException("duplicate bean=" + bean.name); |
| 794 | } |
| 795 | // 新增的appPublishVersion在旧版里面可能没有。 |
| 796 | if (bb.getWriteIndex() > bb.getReadIndex()) |
| 797 | appVersion = bb.ReadLong(); |
| 798 | } |
| 799 | |
| 800 | @Override |
| 801 | public void encode(@NotNull ByteBuffer bb) { |
nothing calls this directly
no test coverage detected