Compartir a través de


3.1.5.4 InitFragmentToken()

  
 InitFragmentToken (Token, MaxOutputTokenSize, OutputToken)
 -- Input:
 --   MaxOutputTokenSize - Maximum size, in bytes, of OutputToken that can be
      returned to the caller. MUST be greater than 5.
 --   Token – The Token message to be fragmented.
 -- Internal Temporary variables that do not pass over the wire are defined below:
 --   RemainingOutputToken – The remaining message to be sent.
 --   FragmentOutputToken - A Boolean setting that indicates that more fragments of the output_token remain.
 -- Output:
 --   OutputToken – The first fragment of the message passed to the caller.
  
 Initialize RemainingOutputToken to Token.
 Set FragmentOutputToken to TRUE
 Set OutputToken to first MaxOutputTokenSize bytes of RemainingOutputToken
 Delete first MaxOutputTokenSize bytes of RemainingOutputToken