aeron-client/src/main/java/io/aeron/command/TerminateDriverFlyweight.java
public TerminateDriverFlyweight tokenBuffer(
        final DirectBuffer tokenBuffer, final int tokenOffset, final int tokenLength)
    {
        buffer.putInt(TOKEN_LENGTH_OFFSET, tokenLength);
        if (null != tokenBuffer && tokenLength > 0)
        {
            buffer.putBytes(tokenBufferOffset(), tokenBuffer, tokenOffset, tokenLength);
        }

        return this;
    }
public TerminateDriverFlyweight tokenBuffer(
        final DirectBuffer tokenBuffer, final int tokenOffset, final int tokenLength)
    {
        buffer.putInt(TOKEN_LENGTH_OFFSET, tokenLength);
        if (null != tokenBuffer && tokenLength > 0)
        {
            buffer.putBytes(tokenBufferOffset(), tokenBuffer, tokenOffset, tokenLength);
        }

        return this;
    }
Fill the token buffer.

@param tokenBuffer containing the optional token for the request.
@param tokenOffset within the tokenBuffer at which the token begins.
@param tokenLength of the token in the tokenBuffer.
@return flyweight