Description

Pool is a container for string and style span collections.

Pool has the following structure marshalled:

	chunkHeader
 uint32 number of strings in this pool
 uint32 number of style spans in pool
 uint32 SortedFlag, UTF8Flag
 uint32 index of string data from header
 uint32 index of style data from header
 []uint32 string indices starting at zero
 []uint16 or []uint8 concatenation of string entries

UTF-16 entries are as follows:

uint16 string length, exclusive
uint16 [optional] low word if high bit of length set
[n]byte data
uint16 0x0000 terminator

UTF-8 entries are as follows:

uint8 character length, exclusive
uint8 [optional] low word if high bit of character length set
uint8 byte length, exclusive
uint8 [optional] low word if high bit of byte length set
[n]byte data
uint8 0x00 terminator

Pool is referenced in 1 repository

github.com/golang/mobile