Create binary struct object for primitives, lists, sets and maps
See original GitHub issueFor the plugin framework, we need a struct that can represent the binary form of a generic object. Right now, TObject
exists, but it can only encode java primitives. We need something that’ll be able to encode primitives in addition to lists, sets and maps.
Here’s the approach I’d take:
- Create a class that wraps a generic
Object
in the concourse-plugin-core project - Create a
toByteBuffer
method in the class that will return a byte buffer representation of the wrapped object
For the binary struct, I think the format should be
- type (1 byte)
- payload (n-1 bytes)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
The Collection Framework - Java Programming Tutorial
This example shows how to create a Collection of an user-defined objects. The Set<E> interface models an unordered mathematical set without duplicate elements....
Read more >Data Structures in JavaScript – With Code Examples
In JavaScript, an object is a collection of key-value pairs. This data structure is also called map, dictionary or hash-table in other ...
Read more >Common Python Data Structures (Guide)
In this tutorial, you'll learn about Python's data structures. You'll look at several implementations of abstract data types and learn which implementations ...
Read more >Data Structures in JavaScript: Arrays, HashMaps, and Lists
Maps, dictionaries, and associative arrays all describe the same abstract data type. But hash map implementations are distinct from treemap ...
Read more >Collections in Java - GeeksforGeeks
Consistent API: The API has a basic set of interfaces like Collection, Set, List, or Map, all the classes (ArrayList, LinkedList, Vector, etc) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was searching for a project to contribute to. Concourse seems very interesting and I thought I could learn by contributing. But now I realized this is just too hard. I’ve been programming Java for 3 years now and I think this is far too complex for me. But keep up the great work and good luck, Jeff. 😃
Sure. I am quite free so i will finish it quickly.