GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Incorrect working in systems with constant msgpack types headers · Issue #870 · msgpack/msgpack-java Open DescriptionProblem descriptionLet's imagine that I have a system that accepts only numbers encoded in Using the API with automatic header selection, it is impossible to encode values from Suggestions for API improvements for statically typed systemsI suggest introducing an API in which the client can choose the type of encoded header. public MessagePacker packUINT(final short b, final MessageFormat type) throws IOException { switch (type) { case UINT8: writeByteAndByte(UINT8, (byte) b); break; case UINT16: writeByteAndShort(UINT16, b); break; case UINT32: writeByteAndInt(UINT32, b); break; case UINT64: writeByteAndLong(UINT64, b); break; default: throw new MessagePackException("Cannot convert '" + type + "' to UINT family types."); } return this; } Here, a method should be understood as a set of overloaded methods with A similar solution for ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |