147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce/*
247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Copyright (C) 2014 The Android Open Source Project
347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Licensed under the Apache License, Version 2.0 (the "License");
547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * you may not use this file except in compliance with the License.
647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * You may obtain a copy of the License at
747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *      http://www.apache.org/licenses/LICENSE-2.0
947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
1047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Unless required by applicable law or agreed to in writing, software
1147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * distributed under the License is distributed on an "AS IS" BASIS,
1247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * See the License for the specific language governing permissions and
1447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * limitations under the License.
1547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce */
1647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
1747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#include "Utils.h"
1847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
1947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucenamespace android {
2047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
2147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucebool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) {
2247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce    if (lhs.size() < rhs.size()) {
2347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce        return true;
2447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce    } else if (lhs.size() > rhs.size()) {
2547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce        return false;
2647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce    }
2747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce    return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0;
2847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce}
2947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
3047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce} // namespace android
31