| 1023 | } |
| 1024 | |
| 1025 | void NoGlueLimitCountingScanner::Load(yistream* s) { |
| 1026 | ui32 type; |
| 1027 | LoadedScanner::Load(s, &type); |
| 1028 | ActionIndex actionsSize; |
| 1029 | if (type == ScannerIOTypes::NoGlueLimitCountingScanner) { |
| 1030 | LoadPodType(s, actionsSize); |
| 1031 | |
| 1032 | if (actionsSize == 0) { |
| 1033 | ActionsBuffer.reset(); |
| 1034 | Actions = nullptr; |
| 1035 | } else { |
| 1036 | ActionsBuffer = TActionsBuffer(new ActionIndex[actionsSize]); |
| 1037 | ActionsBuffer[0] = actionsSize; |
| 1038 | LoadPodArray(s, &ActionsBuffer[1], actionsSize - 1); |
| 1039 | Actions = ActionsBuffer.get(); |
| 1040 | } |
| 1041 | } else { |
| 1042 | Y_ASSERT(type == ScannerIOTypes::LoadedScanner); |
| 1043 | AdvancedScannerCompatibilityMode = true; |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | const void* NoGlueLimitCountingScanner::Mmap(const void* ptr, size_t size) { |
| 1048 | NoGlueLimitCountingScanner scanner; |
nothing calls this directly
no test coverage detected