DISCLAIMER: These notes are from the defunct k8 project which precedes SquirrelJME. The notes for SquirrelJME start on 2016/02/26! The k8 project was effectively a Java SE 8 operating system and as such all of the notes are in the context of that scope. That project is no longer my goal as SquirrelJME is the spiritual successor to it.
I must clear the allocated space as it is intended to be zero filled.
Setting of constant data will essentially just be using set on the pool data for the most part. The global constant writer can handle encoding of the various pool types and such.
A map is bad for WritableStringMap sort of because it implements a map structure in an odd way. So I suppose it will just be a collection.
Well a Collection does not work also.
Well actually it is really a list of hash code values which are mapped directly to constant pool entries. So it is not a map. The list would just contain the hash code data but then there would be the ability to get the associated constant if it is a valid one.
I suppose it really would just be a list of BinConstantInfoUTF with a quick string based lookup mechanism.