code: func getStack(stack *stack) [][]byte {
  	array := make([][]byte, stack.Depth())
  	for i := range array {
  		// PeekByteArry can't fail due to overflow, already checked
  		array[len(array)-i-1], _ = stack.PeekByteArray(int32(i))
  	}
  	return array
  }
docs: // getStack returns the contents of stack as a byte array bottom up