question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create binary struct object for primitives, lists, sets and maps

See original GitHub issue

For 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:

  1. Create a class that wraps a generic Object in the concourse-plugin-core project
  2. 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CompetentSystemcommented, Jun 6, 2016

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. 😃

0reactions
chandresh-pancholicommented, Jun 15, 2016

Sure. I am quite free so i will finish it quickly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found