ibytestreamcopier::ibytestreamcopier(Sirikata::DecoderReader *p, unsigned int byte_offset,
                                     unsigned int max_file_size,
                                     const Sirikata::JpegAllocator<uint8_t> &alloc)
    : ibytestream(p, byte_offset, alloc), side_channel(alloc) {
    if (max_file_size) {
        side_channel.reserve(max_file_size);
    }
}
ibytestreamcopier::ibytestreamcopier(Sirikata::DecoderReader *p, unsigned int byte_offset,
                                     unsigned int max_file_size,
                                     const Sirikata::JpegAllocator<uint8_t> &alloc)
    : ibytestream(p, byte_offset, alloc), side_channel(alloc) {
    if (max_file_size) {
        side_channel.reserve(max_file_size);
    }
}