(n int, ord binary.ByteOrder)
| 312 | } |
| 313 | |
| 314 | func fib(n int, ord binary.ByteOrder) []byte { |
| 315 | buf := make([]byte, 4*n) |
| 316 | for i := 0; i < len(buf); i += 4 { |
| 317 | if i < 8 { |
| 318 | ord.PutUint32(buf[i:], 1) |
| 319 | } else { |
| 320 | ord.PutUint32(buf[i:], ord.Uint32(buf[i-4:])+ord.Uint32(buf[i-8:])) |
| 321 | } |
| 322 | } |
| 323 | return buf |
| 324 | } |
no outgoing calls
no test coverage detected