| 233 | }; |
| 234 | |
| 235 | Iterator* Block::NewIterator() { |
| 236 | if (size_ < sizeof(uint32)) { |
| 237 | return NewErrorIterator(errors::DataLoss("bad block contents")); |
| 238 | } |
| 239 | const uint32 num_restarts = NumRestarts(); |
| 240 | if (num_restarts == 0) { |
| 241 | return NewEmptyIterator(); |
| 242 | } else { |
| 243 | return new Iter(data_, restart_offset_, num_restarts); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | } // namespace table |
| 248 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected