module BSON::LogStashTimestamp

Injects behaviour for encoding and decoding time values to and from raw bytes as specified by the BSON spec.

@see bsonspec.org/#/specification

Constants

BSON_TYPE

A time is type 0x09 in the BSON spec.

Public Instance Methods

to_bson(buffer = ByteBuffer.new) click to toggle source
# File lib/logstash/outputs/bson/logstash_timestamp.rb, line 28
def to_bson(buffer = ByteBuffer.new)
  time.to_bson(buffer)
end