export_test.go 641 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2012 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package reflect
  5. // MakeRO returns a copy of v with the read-only flag set.
  6. func MakeRO(v Value) Value {
  7. v.flag |= flagRO
  8. return v
  9. }
  10. // IsRO reports whether v's read-only flag is set.
  11. func IsRO(v Value) bool {
  12. return v.flag&flagRO != 0
  13. }
  14. var ArrayOf = arrayOf
  15. var CallGC = &callGC
  16. const PtrSize = ptrSize
  17. const BitsPointer = bitsPointer
  18. const BitsScalar = bitsScalar
  19. func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr, stack []byte) {
  20. return
  21. }