[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38974] strings package: base64decode retains
From: |
Carlo de Falco |
Subject: |
[Octave-bug-tracker] [bug #38974] strings package: base64decode retains trailing zeros |
Date: |
Wed, 08 Jul 2015 08:26:50 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0 |
Follow-up Comment #8, bug #38974 (project octave):
an easy way to implement
base64_decode (value, type)
would be to rename the built-in function to
__base64_decode__ and change it to produce
uint8 output.
Then base64_decode.m would be as simple as:
function decoded = base64_decode (value, type = "uint8")
decoded = typecast (__base64_decode__ (value), type);
endfunction
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38974>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/