A brief file description. More...
#include "ink_hrtime.h"
#include "ink_assert.h"
#include "ink_defs.h"
#include <sys/time.h>
Go to the source code of this file.
Functions | |
char * | int64_to_str (char *buf, unsigned int buf_size, int64_t val, unsigned int *total_chars, unsigned int req_width, char pad_char) |
int | squid_timestamp_to_buf (char *buf, unsigned int buf_size, long timestamp_sec, long timestamp_usec) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_hrtime.cc.
char* int64_to_str | ( | char * | buf, | |
unsigned int | buf_size, | |||
int64_t | val, | |||
unsigned int * | total_chars, | |||
unsigned int | req_width, | |||
char | pad_char | |||
) |
Definition at line 43 of file ink_hrtime.cc.
References memcpy.
Referenced by LogAccess::marshal_record(), and squid_timestamp_to_buf().
int squid_timestamp_to_buf | ( | char * | buf, | |
unsigned int | buf_size, | |||
long | timestamp_sec, | |||
long | timestamp_usec | |||
) |
Definition at line 139 of file ink_hrtime.cc.
References ATS_UNUSED, ink_assert, int64_to_str(), and memcpy.
Referenced by LogBuffer::resolve_custom_entry().