(size int)
| 1032 | } |
| 1033 | |
| 1034 | func (ac *arrayContainer) realloc(size int) { |
| 1035 | if cap(ac.content) < size { |
| 1036 | ac.content = make([]uint16, size) |
| 1037 | } else { |
| 1038 | ac.content = ac.content[:size] |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | // previousValue returns either the target if found or the previous smaller present value. |
| 1043 | // If the target is out of bounds a -1 is returned. |